Lots of things can already be done with portable sh code. typeset for example is quite powerful but mentioned nowhere in the repo:
$ var=VaL; typeset -l lvar=$var; typeset -u uvar=$var
$ echo $lvar $uvar
val VAL
In fact, this builtin is often wrapped by the shell itself, at least in OpenBSD’s ksh:
$ alias | fgrep typeset
autoload='typeset -fu'
functions='typeset -f'
integer='typeset -i'
local=typeset
typeset is not posix
typeset -f doestypeset -fu does in your kshtypeset -i doesn’t really have the same effect in bash and kshtr or awk
local, but it’s not posix either“portable sh code” != “it works on my openbsd”
Note how I did not speak of POSIX; you mistake the ksh example as general assumption. My reply to pl’s comment tells you what I meant with “portable” (admittedly, wording was a bit misleading).
At least available in Bourne and Korn shell derivatives; (Debian’s) Almquist Shell does not implement that particular builtin.
Taking a break. It’s the weekend. Give yourself a moment away from the computer.
Yup.
Instead of hacking yesterday, I made lemonade and went swimming in a beautiful, quiet lake just to take nap on the grass afterwards - refreshing af.