Since commit 551bfdb97 (ls: implement -q, fix -w0, reduce startup
time) the '--color' option behaves as though the default argument
'always' had been specified.

This is due to an explict short option for '--color' being given,
but without specifying that an argument is expected.

function                                             old     new   delta
.rodata                                           100563  100564      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 1/0)                 Total: 1 bytes

Signed-off-by: Ron Yorston <[email protected]>
---
 coreutils/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coreutils/ls.c b/coreutils/ls.c
index c24561576..3f73bd848 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -231,7 +231,7 @@ SPLIT_SUBDIR    = 2,
        IF_FEATURE_LS_WIDTH("T:w:")      /* 2, 28 */ \
        IF_LONG_OPTS("\xff")             /* 1, 29 */ \
        IF_LONG_OPTS("\xfe")             /* 1, 30 */ \
-       IF_LONG_OPTS("\xfd")             /* 1, 31 */ \
+       IF_LONG_OPTS("\xfd:")            /* 1, 31 */ \
        "qk"                             /* 2, 33 */
 
 #if ENABLE_LONG_OPTS
-- 
2.51.0

_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to