@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.
https://www.shellunix.com/ksh.html ksh script
http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html code ksh script tuto
https://deftly.net/posts/2017-05-01-openbsd-ksh-tab-complete.html ksh openbsd shell
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.