From acd9c429c01f8deceb7e6cb161023144a0d1e0f7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 2 May 2000 06:55:49 +0000 Subject: [PATCH] (usage): Add the answer to `How do I remove a file named -f?' --- src/rm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rm.c b/src/rm.c index 4d15cfa..6b69f87 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 (); -- 2.7.4