Voelker, Bernhard wrote: > Good point. > That means, the info page could be enhanced to mention that > special case (see below). ... > Subject: [PATCH] doc: document 'rm -f' better > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > * doc/coreutils.texi (rm invocation): Mention that the option '-f' 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 ...
Thanks. I've applied that with these tweaks: doc: improve 'rm -f' description diff --git a/THANKS.in b/THANKS.in index 904bb3e..c8dd75f 100644 --- a/THANKS.in +++ b/THANKS.in @@ -276,6 +276,7 @@ Jens Elkner elk...@imsgroup.de Jens Schmidt j...@jsds.hamburg.com Jeph Cowan j...@ucar.edu Jeremy Maitin-Shepard j...@cmu.edu +Jérémy Magrin jeremy.mag...@epitech.eu Jerome Abela ab...@hsc.fr Jérôme Zago bug-coreutils...@agt-the-walker.net Jesse Kornblum kornb...@usna.edu diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 87624c2..8c6a287 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8769,7 +8769,7 @@ rm invocation @itemx --force @opindex -f @opindex --force -Ignore nonexistent files, missing operands 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