]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Remove special cases for POSIXLY_CORRECT when POSIX allows the GNU behavior.
authorJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 21:56:15 +0000 (21:56 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 21:56:15 +0000 (21:56 +0000)
(pr invocation, unlink invocation): Document this.

doc/coreutils.texi

index 8612c2b14b6ce4941238f82b25f3db24b0963bfa..a0932150388826758435fdd7b2f37a5dc9b336c4 100644 (file)
@@ -1952,10 +1952,11 @@ e.g., @option{--date-format="Monday morning"}.
 
 @vindex POSIXLY_CORRECT
 @vindex LC_TIME
-If the @env{POSIXLY_CORRECT} environment variable is not set, the date
+Normally the date
 format defaults to @samp{%Y-%m-%d %H:%M} (for example, @samp{2001-12-04
-23:59}); otherwise, the format depends on the @env{LC_TIME} locale
-category, with the default being @samp{%b %e %H:%M %Y} (for example,
+23:59}); but if the @env{POSIXLY_CORRECT} environment variable is set
+and the @env{LC_TIME} locale category specifies the @acronym{POSIX}
+locale, the default is @samp{%b %e %H:%M %Y} (for example,
 @samp{Dec@ @ 4 23:59 2001}.
 
 @item -e[@var{in-tabchar}[@var{in-tabwidth}]]
@@ -7768,12 +7769,9 @@ On some systems @code{unlink} can be used to delete the name of a
 directory.  On others, it can be used that way only by a privileged user.
 In the GNU system @code{unlink} can never delete the name of a directory.
 
-@vindex POSIXLY_CORRECT
-By default, @command{unlink} honors the @option{--help} and @option{--version}
-options.  That makes it a little harder to remove files named
-@option{--help} and @option{--version}, so when the environment variable
-@env{POSIXLY_CORRECT} is set, @command{unlink} treats such a command line
-arguments not as an option, but as an operand.
+The @command{unlink} command honors the @option{--help} and
+@option{--version} options.  To remove a file whose name begins with
+@samp{-}, prefix the name with @samp{./}, e.g., @samp{unlink ./--help}.
 
 @exitstatus