From 7dc26da47c9e01dc89fef9837219cdca1e9bbce6 Mon Sep 17 00:00:00 2001 From: Dan Jacobson Date: Tue, 12 Feb 2008 09:18:11 +0100 Subject: ls: Improve description of --group-directories-first. * src/ls.c (usage) [--group-directories-first]: Improve description. * doc/coreutils.texi (Which files are listed): Likewise. --- doc/coreutils.texi | 2 ++ src/ls.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 23d0ab45b..016673a3b 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -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} diff --git a/src/ls.c b/src/ls.c index b6dcaacaa..ff49278c7 100644 --- 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\ -- cgit v1.2.3-70-g09d2