k9core

Coreutils for *nix operating systems
git clone git://bvnf.space/k9core.git
Log | Files | Refs | LICENSE

commit 7ec216473c7328af5a4959e52b6e9851f322dcb1
parent ddbfa39a1819f200ceff231ac0104e452f33438d
Author: aabacchus <ben@bvnf.space>
Date:   Mon, 13 Sep 2021 15:02:24 +0100

ls: add -1

Diffstat:
Msrc/ls.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ls.c b/src/ls.c @@ -41,7 +41,7 @@ main(int argc, char *argv[]) int all, show_slash, show_line, show_suffix, recursive; all = show_slash = show_line = show_suffix = recursive = 0; - while((c = getopt(argc, argv, "lapFR")) != -1) { + while((c = getopt(argc, argv, "lapFR1")) != -1) { switch(c) { case 'a': all = 1; @@ -59,6 +59,9 @@ main(int argc, char *argv[]) case 'R': recursive = 1; break; + case '1': + show_line = 1; + break; } } char directory[256];