diff options
-rw-r--r-- | toys/posix/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 7dc85ac9..d313457a 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -528,7 +528,7 @@ void ls_main(void) // Do we have an implied -1 if (!isatty(1)) { - toys.optflags |= FLAG_1; + if (!(toys.optflags & FLAG_m)) toys.optflags |= FLAG_1; if (TT.color) toys.optflags ^= FLAG_color; } else if (toys.optflags&(FLAG_l|FLAG_o|FLAG_n|FLAG_g)) toys.optflags |= FLAG_1; |