summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-04-01 01:56:52 +0100
committerPádraig Brady <P@draigBrady.com>2015-04-01 02:04:19 +0100
commitccf1cd87f8b0c1cb5f5801a6be1ce8f44a165a19 (patch)
treeae3410ad51fda4f4b7bb6b66ab7f5e61cbe4bbff /src/ls.c
parentd313a0b24234d3366ec263111469f219f5b4634f (diff)
downloadcoreutils-ccf1cd87f8b0c1cb5f5801a6be1ce8f44a165a19.tar.xz
doc: clarify that ls --sort=time is newest first
* src/ls.c (usage): Add punctuation to avoid ambiguity in the description of the --time option. Mention that both the -u and --sort=time default order is newest first.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index e406689c4..b308dd33e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -4888,9 +4888,10 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
,\n\
time (-t), version (-v), extension (-X)\n\
--time=WORD with -l, show time as WORD instead of default\n\
- modification time: atime or access or use (-u)\n\
+ modification time: atime or access or use (-u);\
+\n\
ctime or status (-c); also use specified time\n\
- as sort key if --sort=time\n\
+ as sort key if --sort=time (newest first)\n\
"), stdout);
fputs (_("\
--time-style=STYLE with -l, show times using style STYLE:\n\
@@ -4911,7 +4912,7 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
fputs (_("\
-u with -lt: sort by, and show, access time;\n\
with -l: show access time and sort by name;\n\
- otherwise: sort by access time\n\
+ otherwise: sort by access time, newest first\n\
-U do not sort; list entries in directory order\n\
-v natural sort of (version) numbers within text\n\
"), stdout);