News for hackers. Stuff that matters.
Re:Some Useful Bash Aliases – Chuck Carroll by Galanwe on Monday December 25, 2023 @04:15PM (#38766189)
That seems flaky at best. Basically you rely on "*" expansion to inject the -i.

While that may work for `rm -rf *`, it won't for `rm -rf foo/*`, `rm -rf foo`, etc

Re:Some Useful Bash Aliases – Chuck Carroll by metal on Monday December 25, 2023 @05:50PM (#38767041)
That's the point. You're not relying on it, it's a safety to save yourself from an unintended glob expansion.