summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-02 06:55:49 +0000
committerJim Meyering <jim@meyering.net>2000-05-02 06:55:49 +0000
commitacd9c429c01f8deceb7e6cb161023144a0d1e0f7 (patch)
tree14931401a08eccf2719e0fc9ecda926520a8e371 /src
parente0263e15f1e9e986fa4db66acc1477b1e24aa3dc (diff)
downloadcoreutils-acd9c429c01f8deceb7e6cb161023144a0d1e0f7.tar.xz
(usage): Add the answer to `How do I remove a file named -f?'
Diffstat (limited to 'src')
-rw-r--r--src/rm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index 4d15cfafb..6b69f8750 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 <bug-fileutils@gnu.org>."));
close_stdout ();