sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 7fdbdd0770ff67762cc49d18389867f87bac5666
parent 5df631ac0995012f83ecdb5c6ea1dc72fa924d0b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  5 Jul 2014 14:35:34 +0000

ls: add -1 for compatibility (ignore)

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

diff --git a/ls.c b/ls.c @@ -43,7 +43,7 @@ static bool many; static void usage(void) { - eprintf("usage: %s [-adFilrtU] [FILE...]\n", argv0); + eprintf("usage: %s [-1adFilrtU] [FILE...]\n", argv0); } int @@ -53,6 +53,9 @@ main(int argc, char *argv[]) Entry *ents; ARGBEGIN { + case '1': + /* ignore */ + break; case 'a': aflag = true; break;