From: Jim Meyering Date: Tue, 2 May 2000 06:55:49 +0000 (+0000) Subject: (usage): Add the answer to `How do I remove a file named -f?' X-Git-Tag: SH-UTILS-2_0h~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acd9c429c01f8deceb7e6cb161023144a0d1e0f7;p=thirdparty%2Fcoreutils.git (usage): Add the answer to `How do I remove a file named -f?' --- diff --git a/src/rm.c b/src/rm.c index 4d15cfafb2..6b69f8750e 100644 --- a/src/rm.c +++ b/src/rm.c @@ -1,5 +1,5 @@ /* `rm' file deletion utility for GNU. - Copyright (C) 88, 90, 91, 1994-1999 Free Software Foundation, Inc. + Copyright (C) 88, 90, 91, 1994-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -96,6 +96,11 @@ Remove (unlink) the FILE(s).\n\ -v, --verbose explain what is being done\n\ --help display this help and exit\n\ --version output version information and exit\n\ +\n\ +To remove a file whose name starts with a `-', for example `-foo',\n\ +use one of these commands:\n\ + rm -- -foo\n\ + rm ./-foo\n\ ")); puts (_("\nReport bugs to .")); close_stdout ();