A while ago I wrote a window manager in nothing than POSIX sh and POSIX utilities: https://git.qtp2t.club/hazel/wmrc.
This taught me to never write shell in an extended capacity again, especially after I forgot to define a variable and it wiped $HOME.
yea, POSIX shell isn’t exactly a good language to write a nontrivial program in. But I thought I’d share it here anyway, seeing people implement stuff in esoteric languages is always fun :)
Thanks, I hate it.
A while ago I wrote a window manager in nothing than POSIX sh and POSIX utilities: https://git.qtp2t.club/hazel/wmrc. This taught me to never write shell in an extended capacity again, especially after I forgot to define a variable and it wiped
$HOME
.yea, POSIX shell isn’t exactly a good language to write a nontrivial program in. But I thought I’d share it here anyway, seeing people implement stuff in esoteric languages is always fun :)
What came first, the (shitty 😏) name, or the idea?
I’m a bit confused.
For example is using
$(())
which is a bashism, I’d assumemeans using some external tools (like
od
), not relying on non-POSIX features.$(()) is not a bashism.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04
od is also POSIX.
You are right.
Thanks for the correction. I misread a table, clear sign I never used arithmetic expressions before.