ls: add -1 for compatibility (ignore)

This commit is contained in:
Hiltjo Posthuma 2014-07-05 14:35:34 +00:00 committed by sin
parent 5df631ac09
commit 7fdbdd0770

5
ls.c
View File

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