Reply to post: Re: Two years ago

Developer mistakenly deleted data - so thoroughly nobody could pin it on him!

Doctor Syntax Silver badge

Re: Two years ago

"I'm still wondering why rm returns an error when the thing you are trying to delete doesn't exist."

Your intention: to delete a file called 0nefile.

You type in: rm Onefile

On completion of rm, 0nefile still exists because you didn't tell rm to remove it. If rm doesn't return an error you're no wiser to this unless you then run ls. Wouldn't it be handy if rm gave you some feedback to tell you you'd typed in an incorrect filename?

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon