]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Add the answer to `How do I remove a file named -f?'
authorJim Meyering <jim@meyering.net>
Tue, 2 May 2000 06:55:49 +0000 (06:55 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 2 May 2000 06:55:49 +0000 (06:55 +0000)
src/rm.c

index 4d15cfafb293bb67944c36cb47b43a23af626d3a..6b69f8750eddaa736d98fbd171922b89b33e3340 100644 (file)
--- 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 ();