Hacker News new | past | comments | ask | show | jobs | submit login

That won't actually help with rm -rf /* , only with rm -rf * in / or $HOME.



Would it work with `touch "/ -@"` (not the space)?


No, it doesn't work. "./*" expands to "./ -@" as a single field, which rm has no problems with. (Note that, however, this is still the globbing of the shell, as far as I understand.)


how would changing the filename fix it? it's a hack relying on the globbing of the shell. if you're not using the globbing, the hack can never help you.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: