From: Paul Eggert Date: Mon, 29 Aug 2005 21:14:06 +0000 (+0000) Subject: "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" X-Git-Tag: CPPI-1_12~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b23625f623d253b8f6de9b5937175af9a7db98bd;p=thirdparty%2Fcoreutils.git "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" exists and "-FOO" is not a valid option. --- diff --git a/ChangeLog b/ChangeLog index d9e0c17c2b..7b19332a28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,15 @@ -2005-08-27 Jim Meyering +2005-08-29 Paul Eggert * 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 + * 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 b708f74ce1..ed91acf70a 100644 --- 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