ls: Improve description of --group-directories-first.
authorDan Jacobson <jidanni@jidanni.org>
Tue, 12 Feb 2008 08:18:11 +0000 (09:18 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 17 Feb 2008 07:53:28 +0000 (08:53 +0100)
* src/ls.c (usage) [--group-directories-first]: Improve description.
* doc/coreutils.texi (Which files are listed): Likewise.

doc/coreutils.texi
src/ls.c

index 23d0ab4..016673a 100644 (file)
@@ -5894,6 +5894,8 @@ directories and the files separately using the selected sort key
 (see --sort option).
 That is, this option specifies a primary sort key,
 and the --sort option specifies a secondary key.
+However, any use of @option{--sort=none}
+(@option{-U}) disables this option altogether.
 
 @item --hide=PATTERN
 @opindex --hide=@var{pattern}
index b6dcaac..ff49278 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -4350,7 +4350,9 @@ Mandatory arguments to long options are mandatory for short options too.\n\
 "), stdout);
       fputs (_("\
       --group-directories-first\n\
-                             group directories before files\n\
+                             group directories before files.\n\
+                               augment with a --sort option, but any\n\
+                               use of --sort=none (-U) disables grouping\n\
 "), stdout);
       fputs (_("\
   -G, --no-group             in a long listing, don't print group names\n\