From b17fce4fa413a1b98dd0c9aa1b87ece850844e9f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 22 Apr 2001 21:34:20 +0000 Subject: [PATCH] (decode_switches): Ensure that -1 has no effect when it follows -l. --- src/ls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ls.c b/src/ls.c index 45ab5cb25..230ae7e90 100644 --- 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: