HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by tp34 | Hacker News Reader
Parent
Full thread
tp34
·
shopt -s dotglob
View on HN
seanhunter
·
Yes. Or one lowtech method I use often is `touch ~/-i`. When someone tries to rm -rf * the file called “-i” gets globbed at the front of the arguments and the subsequent command goes into “interactive “ mode meaning it prompts y/n for each file
tpoacher
·
Nice! Great "bug as a feature" trick!
Reply on news.ycombinator.com