2005-08-29 James Youngman
(tiny change) * src/rm.c (usage): Suggest "rm ./*" in preference to "rm *" in the help message. Index: src/rm.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/rm.c,v retrieving revision 1.134 diff -u -r1.134 rm.c --- src/rm.c 14 May 2005 07:58:37 -0000 1.134 +++ src/rm.c 29 Aug 2005 22:25:53 -0000 @@ -136,6 +136,14 @@ %s ./-foo\n\ "), base, base); + printf (_("\ +\n\ +Similarly, if you want to remove all the files in the current directory,\n\ + %s ./*\n\ +is much safer than\n\ + %s *\n\ +in case the shell's expansion of '*' includes any files starting with '-'.\n"), + base, base); fputs (_("\ \n\ Note that if you use rm to remove a file, it is usually possible to recover\n\