ls: add -1 for compatibility (ignore)
This commit is contained in:
5
ls.c
5
ls.c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user