]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(ls invocation): ls -p now marks only directories. New option
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Apr 2005 21:00:01 +0000 (21:00 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Apr 2005 21:00:01 +0000 (21:00 +0000)
--indicator-style=directory equivalent to -p.

doc/coreutils.texi

index 21711c072518af772524d3d4949c8603f453397f..e8b17289e81138fe9e08275be3be531b2e2f0538 100644 (file)
@@ -5880,13 +5880,22 @@ Piping a colorized listing through a pager like @command{more} or
 Append a character to each file name indicating the file type.  Also,
 for regular files that are executable, append @samp{*}.  The file type
 indicators are @samp{/} for directories, @samp{@@} for symbolic links,
-@samp{|} for FIFOs, @samp{=} for sockets, and nothing for regular files.
+@samp{|} for FIFOs, @samp{=} for sockets, @samp{>} for doors,
+and nothing for regular files.
 @c The following sentence is the same as the one for -d.
 Do not follow symbolic links listed on the
 command line unless the @option{--dereference-command-line} (@option{-H}),
 @option{--dereference} (@option{-L}), or
 @option{--dereference-command-line-symlink-to-dir} options are specified.
 
+@item --file-type
+@itemx --indicator-style=file-type
+@opindex --file-type
+@opindex --indicator-style
+@cindex file type, marking
+Append a character to each file name indicating the file type.  This is
+like @option{-F}, except that executables are not marked.
+
 @item --indicator-style=@var{word}
 @opindex --indicator-style
 Append a character indicator with style @var{word} to entry names,
@@ -5894,10 +5903,13 @@ as follows:
 @table @samp
 @item none
 Do not append any character indicator; this is the default.
+@item directory
+Append @samp{/} for directories.  This is the same as the @option{-p}
+option.
 @item file-type
 Append @samp{/} for directories, @samp{@@} for symbolic links, @samp{|}
 for FIFOs, @samp{=} for sockets, and nothing for regular files.  This is
-the same as the @option{-p} or @option{--file-type} option.
+the same as the @option{--file-type} option.
 @item classify
 Append @samp{*} for executable regular files, otherwise behave as for
 @samp{file-type}.  This is the same as the @option{-F} or
@@ -5919,13 +5931,11 @@ List files horizontally, with as many as will fit on each line,
 separated by @samp{, } (a comma and a space).
 
 @item -p
-@itemx --file-type
-@itemx --indicator-style=file-type
-@opindex --file-type
+@itemx --indicator-style=directory
+@opindex -p
 @opindex --indicator-style
 @cindex file type, marking
-Append a character to each file name indicating the file type.  This is
-like @option{-F}, except that executables are not marked.
+Append a @samp{/} to directory names.
 
 @item -x
 @itemx --format=across