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

No, doesn’t work like that, meaning it should actually delete everything. The shell is expanding /* to the list of paths, not rm, and /* does not expand to / at all.

Try adding “echo “ in front of the rm command line to see how it expands. (That, by the way, is often a good idea.)



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

Search: