POSIX Is Not A Shell
Alexandre Gomes Gaigalas – June 28, 2026
When someone says "write it in POSIX shell for portability," they mean well.
POSIX is a specification. Not a program. The thing that actually runs your script is bash, dash, ash, ksh, yash, or one of a dozen others. They each implement POSIX with their own gaps, extensions, and historical accidents.
Here is a small experiment. One line, no flags, no functions, nothing exotic:
echo "C:
ew"
On bash, ksh, and a handful of others, you get back exactly what you typed:
C:
ew
... continue reading