3 ms·
I have almost experienced a disaster like this with a script containing something like - rm -rf "$foo/$bar" - when the variables were undefined due to a bug i
by excitom 12y ago
I have almost experienced a disaster like this with a script containing something like -
rm -rf "$foo/$bar"
- when the variables were undefined due to a bug in the script. Fortunately I was not running it as root.
- deleted 12y ago[deleted]
- twic 12y agoThis is why i've been writing: set -u in every script i've written since i did exactly the same thing.