3 ms·
> Bash has a handy POSIX mode which you can run your code under if you’re not sure if it’s portable or not. That is not what POSIX mode is for. POSIX mode is t
by hvdijk 5y ago
> Bash has a handy POSIX mode which you can run your code under if you’re not sure if it’s portable or not.
That is not what POSIX mode is for. POSIX mode is to let POSIX scripts work, not to let non-POSIX scripts fail. The latter is done only insofar as it is necessary to achieve the former, so POSIX mode still leaves plenty of extensions enabled, which is fine for its intended use.