From 7fdbdd0770ff67762cc49d18389867f87bac5666 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 5 Jul 2014 14:35:34 +0000 Subject: [PATCH] ls: add -1 for compatibility (ignore) --- ls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ls.c b/ls.c index 88ae3c0..a4621d6 100644 --- 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;