]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(decode_switches): Ensure that -1 has no effect when it follows -l.
authorJim Meyering <jim@meyering.net>
Sun, 22 Apr 2001 21:34:20 +0000 (21:34 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 22 Apr 2001 21:34:20 +0000 (21:34 +0000)
src/ls.c

index 45ab5cb254d11be7dcd839e91ab4be2d86468d95..230ae7e904b7e418bed85c0d9754b282e6c456c1 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1269,7 +1269,9 @@ Use `--si' for the old meaning."));
          break;
 
        case '1':
-         format = one_per_line;
+         /* -1 has no effect after --l.  */
+         if (format != long_format)
+           format = one_per_line;
          break;
 
        case SORT_OPTION: