@Alexander This is Bash's POSIX mode. -- Or what do you expect from it? If you want a shell that rejects all Bashisms (not just the ones actively contradicting POSIX, which is what the --posix mode is for), use another shell. Depending on your other requirements, Dash or the KornShell come to mind...