On Thu, Jul 04, 2002 at 12:52:56PM +1000, Rick Welykochy wrote: > Mary wrote: > > > Running rm with - as an argument in order to find out oh so painfully > > what someone else just did wrong is good. > > $ rm - > rm: cannot remove `-': No such file or directory >
Reminds me of the time when somehow I (or someone else) created a file called -R in a directory. I hadn't noticed it, and went to delete all the files in the dir with rm * The * expanded in the shell to rm -R file1 file2 file3 etc... which wasn't what I wanted to run at all. I actually wanted to keep the directories. whoops. Lucky it was a test box. I remember having to write a little perl proggie to remove the -R file, as rm just wasn't going to have a bar of it. -Colin
msg24637/pgp00000.pgp
Description: PGP signature
