Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How do you delete a file called -foo?

rm ./-foo



Yeah, but still kludge because we don't do that for all files, do we? If it didn't start with a minus, we'd just drop it. So there's no one true way, as we'd like to think.


I have never felt the desire to, or accidentally created files with minus at the start.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: