]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2005 21:14:06 +0000 (21:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2005 21:14:06 +0000 (21:14 +0000)
exists and "-FOO" is not a valid option.

ChangeLog
NEWS

index d9e0c17c2bf0580bb186f248efb59412141072c6..7b19332a28d306a5a1089d72a322b6ffe504f895 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,15 @@
-2005-08-27  Jim Meyering  <jim@meyering.net>
+2005-08-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.1-cvs.
 
+       * NEWS: "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
+       exists and "-FOO" is not a valid option.
+       * src/rm.c: Include lstat.h, quotearg.h.
+       (diagnose_leading_hyphen): New function.
+       (main): Use it.
+
+2005-08-27  Jim Meyering  <jim@meyering.net>
+
        * src/du.c: Go ahead and leave the patch in (i.e., revert
        today's change).  It doesn't cause a problem after all, since
        --exclude-from=- is always handled before --files0-from=F.
diff --git a/NEWS b/NEWS
index b708f74ce1ccef66e6f8f825ec6084fa732185b4..ed91acf70a8c9ff2b9e943e275c8918451a3f7ed 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -191,6 +191,9 @@ GNU coreutils NEWS                                    -*- outline -*-
   If stdin is a terminal, nohup now redirects it from /dev/null to
   prevent the command from tying up an OpenSSH session after you logout.
 
+  "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" exists and
+  "-FOO" is not a valid option.
+
   stat -f -c %S outputs the fundamental block size (used for block counts).
   stat -f's default output format has been changed to output this size as well.
   stat -f recognizes file systems of type XFS and JFS