Warning: The uninstallation process deletes the folder Steam was installed to to ensure it is fully uninstalled. If you accidentally installed Steam to a folder containing other data, for example C:\Program Files (x86)\ instead of C:\Program Files (x86)\Steam\..."
set -o nounset
You can check variables as many ways you want, just do this too - safety net in case there's an eventual gapI would also add dotglob because it’s rarer for me to want only non-hidden files than it is for me to want all files.
I prefer this summary of it, because the original includes stuff like changing IFS (the fields separators) which I agree with the Gist author to not include, because it is a Bad Idea to blindly suggest it universally.
EDIT: This gist:
https://gist.github.com/robin-a-meade/58d60124b88b60816e8349...
I can't ever imagine using it tho :) If my bash scripts are so complex or critical that I feel the need to type check, I will probably use another scripting language where I can do that more easily while still having readable code.
> [...]
> boolean: a shortcut for returning a number (as numbers are booleans).
Can someone explain? I can understand booleans being numbers (e.g. #define TRUE 1 in C), but how are numbers booleans in bash?
The problem is, they have a tendency to suddenly get horribly intransparent when they grow larger than maybe a few dozen lines.
Agreed XD
It's a really nice idea but I cannot ever see myself writing bash like this