↳
In-reply-to
»
I love shell scripts because they’re so pragmatic and often allow me to get jobs done really quickly.
⤋ Read More
@movq@www.uninformativ.de Variable names used with -eq in [[ ]] are automatically expanded even without $ as explained in the “ARITHMETIC EVALUATION” section of the bash man page. Interesting. Trying this on OpenBSD’s ksh, it seems “set -u” doesn’t affect that substitution.
Me, 3 times a day, “/bin/ksh: :wq: not found”
@kas@enotty.dk Switching shells is the reason that I started deploying scripts in /usr/local/bin rather than defining aliases. :D Tested #bash #ksh #fish and #zsh and the latter it is now for years already.