POSIX is just too limited and not what people use in practice.
If you want a portable shell script, in many cases my (biased) advice would be to make your script work on both bash and Oil. (Obviously there are short shell scripts which you may want to run on BSD, etc. This is more about big scripts, which POSIX falls down for.)
Oil already runs some of the biggest shell scripts in the world, many of them unmodified. Moreoever, when there's a patch necessary to run it, it often IMPROVES the program.
http://www.oilshell.org/blog/2018/01/28.html#limit-to-posix
Recent comment about this:
https://news.ycombinator.com/item?id=24428347
POSIX is just too limited and not what people use in practice.
If you want a portable shell script, in many cases my (biased) advice would be to make your script work on both bash and Oil. (Obviously there are short shell scripts which you may want to run on BSD, etc. This is more about big scripts, which POSIX falls down for.)
Oil already runs some of the biggest shell scripts in the world, many of them unmodified. Moreoever, when there's a patch necessary to run it, it often IMPROVES the program.
http://www.oilshell.org/blog/2020/06/release-0.8.pre6.html#p...
You'll be less tied to the vagaries of bash.
If anyone's script doesn't run under Oil, I'm interested. See https://github.com/oilshell/oil/wiki/What-Is-Expected-to-Run...