EMPTY="" rm -rf $EMPTY/
> The thing about Bash is that it is trivially easy to make these sorts of mistakes
I fail to see how any other scripting language would have a different effect when you told it to do:
system("rm -rf "+""+"/")
Yes, it is. Bash is deeper than it looks, but not by much. Learn how to handle errors and you'll be fine.
> The thing about Bash is that it is trivially easy to make these sorts of mistakes
I fail to see how any other scripting language would have a different effect when you told it to do:
> the language just isn't suitable to general purpose scripting.Yes, it is. Bash is deeper than it looks, but not by much. Learn how to handle errors and you'll be fine.