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

> Offtopic, but: what's an example of a situation where using rm -f is bad compared to rm in practice?

Having personally done this, in production, I'll give you my goto example.

set PACKAGE-DIR=/usr/local/bmelton/test/ rm -rf $PACKAGE_DIR

(actually rm -rf /)




set -o nounset




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

Search: