Op 08-12-19 om 10:29 schreef Oğuz:
I think otherwise. In POSIX mode Bash should at least print warnings
about features POSIX lets implementations provide but doesn't mandate,
like function, select, [[, etc.

That would be a far bigger change than just allowing process substitution.

Also, there is already a good shell that does this: yash <http://yash.osdn.jp/>. Its POSIX mode is deliberately strict and restrictive and does not allow any non-portable functionality, so it's a really good compatibility testing tool.

Then there are also shells that simply don't implement much more than POSIX, such as dash. They're useful for that as well.

So I don't think bash needs to fulfill that function. Bash's POSIX mode has always been simply a way to run POSIX scripts, with or without mixing them with bash scripts.

- M.

--
modernish -- harness the shell
https://github.com/modernish/modernish

Reply via email to