Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tp34
· 3y ago · 0 comments
shopt -s dotglob
Comments
[–]
seanhunter
3y ago
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
3y ago
Nice! Great "bug as a feature" trick!