Re:Shellfirm: Intercept risky patterns at the command line
by playingalong on Sunday July 31, 2022 @02:58AM
(#32293808)
Do people really issue these risky commands (and regret)? Or is it rather variable substitution which comes to play? E.g. referenced to undeclared variable which renders to empty string.
[ Parent
| on HN ]
Re:Shellfirm: Intercept risky patterns at the command line
by xanathar on Sunday July 31, 2022 @04:39AM
(#32294246)
Yes, but probably not in the way that makes the program any useful.
Example: I recently executed `git checkout .` (that incidentally would not be caught by this project) on the wrong repo. Oh the pain. But I would have probably confirmed the "captcha" blindly as I really wanted to execute that... just not on that repo.