From: Bernhard Voelker Date: Thu, 16 Feb 2012 12:29:44 +0000 (+0100) Subject: doc: improve 'rm -f' description X-Git-Tag: v8.16~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf5ba002c20578a5bdc9599b250cdad5468fa9ab;p=platform%2Fupstream%2Fcoreutils.git doc: improve 'rm -f' description * doc/coreutils.texi (rm invocation): Mention that the -f option also silences the message for missing operands, which is useful in scripts e.g., for "rm -f $file_list" when $file_list is empty. * src/rm.c (usage): Likewise. Reported by Jérémy Magrin in http://bugs.gnu.org/10819 --- diff --git a/THANKS.in b/THANKS.in index 904bb3e..c8dd75f 100644 --- a/THANKS.in +++ b/THANKS.in @@ -276,6 +276,7 @@ Jens Elkner elkner@imsgroup.de Jens Schmidt jms@jsds.hamburg.com Jeph Cowan jeph@ucar.edu Jeremy Maitin-Shepard jbms@cmu.edu +Jérémy Magrin jeremy.magrin@epitech.eu Jerome Abela abela@hsc.fr Jérôme Zago bug-coreutils-ml@agt-the-walker.net Jesse Kornblum kornblum@usna.edu diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 02c3a2a..8c6a287 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8769,7 +8769,7 @@ The program accepts the following options. Also see @ref{Common options}. @itemx --force @opindex -f @opindex --force -Ignore nonexistent files and never prompt the user. +Ignore nonexistent files and missing operands, and never prompt the user. Ignore any previous @option{--interactive} (@option{-i}) option. @item -i diff --git a/src/rm.c b/src/rm.c index db525d0..02809f2 100644 --- a/src/rm.c +++ b/src/rm.c @@ -135,7 +135,7 @@ usage (int status) fputs (_("\ Remove (unlink) the FILE(s).\n\ \n\ - -f, --force ignore nonexistent files, never prompt\n\ + -f, --force ignore nonexistent files and arguments, never prompt\n\ -i prompt before every removal\n\ "), stdout); fputs (_("\