aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-08-26 13:23:10 -0500
committerRob Landley <rob@landley.net>2018-08-26 13:23:10 -0500
commit1aaef2d2b72800a5c6bedae04941304ce8e153be (patch)
tree6f3fce66b9a080e70b6b6ed899f14df757a0c0c5 /toys
parent482c422f8e8ec517de071266d425b425c4628103 (diff)
downloadtoybox-1aaef2d2b72800a5c6bedae04941304ce8e153be.tar.gz
Remove ls sub-option: always support --color.
(Well, when you say --color or "alias ls='ls --color=auto'" in your shell.)
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/ls.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 2726630c..ec8c6c0d 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -12,13 +12,13 @@
* Posix says the -l date format should vary based on how recent it is
* and we do --time-style=long-iso instead
-USE_LS(NEWTOY(ls, USE_LS_COLOR("(color):;")"(full-time)(show-control-chars)ZgoACFHLRSabcdfhikl@mnpqrstux1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][!qb]", TOYFLAG_BIN|TOYFLAG_LOCALE))
+USE_LS(NEWTOY(ls, "(color):;(full-time)(show-control-chars)ZgoACFHLRSabcdfhikl@mnpqrstux1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][!qb]", TOYFLAG_BIN|TOYFLAG_LOCALE))
config LS
bool "ls"
default y
help
- usage: ls [-ACFHLRSZacdfhiklmnpqrstux1] [directory...]
+ usage: ls [-ACFHLRSZacdfhiklmnpqrstux1] [--color[=auto]] [directory...]
list files
@@ -38,20 +38,12 @@ config LS
-l long (show full details) -m comma separated
-n like -l but numeric uid/gid -o like -l but no group
-x columns (horizontal sort) -ll long with nanoseconds (--full-time)
-
- sorting (default is alphabetical):
- -f unsorted -r reverse -t timestamp -S size
-
-config LS_COLOR
- bool "ls --color"
- default y
- depends on LS
- help
- usage: ls --color[=auto]
-
--color device=yellow symlink=turquoise/red dir=blue socket=purple
files: exe=green suid=red suidfile=redback stickydir=greenback
=auto means detect if output is a tty.
+
+ sorting (default is alphabetical):
+ -f unsorted -r reverse -t timestamp -S size
*/
#define FOR_ls