[hackers] [sbase] ls: add -1 for compatibility (ignore) || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 05 Jul 2014 17:26:33 +0200

commit 7fdbdd0770ff67762cc49d18389867f87bac5666
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jul 5 14:35:34 2014 +0000

    ls: add -1 for compatibility (ignore)

diff --git a/ls.c b/ls.c
index 88ae3c0..a4621d6 100644
--- a/ls.c
+++ b/ls.c
_AT_@ -43,7 +43,7 @@ static bool many;
 static void
 usage(void)
 {
- eprintf("usage: %s [-adFilrtU] [FILE...]
", argv0);
+ eprintf("usage: %s [-1adFilrtU] [FILE...]
", argv0);
 }
 
 int
_AT_@ -53,6 +53,9 @@ main(int argc, char *argv[])
         Entry *ents;
 
         ARGBEGIN {
+ case '1':
+ /* ignore */
+ break;
         case 'a':
                 aflag = true;
                 break;
Received on Sat Jul 05 2014 - 17:26:33 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 05 2014 - 17:36:08 CEST