Mercurial > hg > toybox
changeset 695:d2dde3d0ef05
Make ls default to -C if no option specified and it's outputting to a tty.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 15 Nov 2012 16:15:51 -0600 |
parents | 786841fdb1e0 |
children | 99ca30ad3d2b |
files | toys/posix/ls.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/ls.c Tue Nov 13 17:14:08 2012 -0600 +++ b/toys/posix/ls.c Thu Nov 15 16:15:51 2012 -0600 @@ -426,6 +426,7 @@ else { TT.screen_width = 80; terminal_size(&TT.screen_width, NULL); + if (!(toys.optflags&(FLAG_1|FLAG_x|FLAG_m))) toys.optflags |= FLAG_C; } // The optflags parsing infrastructure should really do this for us, // but currently it has "switch off when this is set", so "-dR" and "-Rd"