bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] allow process substitution in POSIX mode


From: Martijn Dekker
Subject: Re: [PATCH] allow process substitution in POSIX mode
Date: Sun, 8 Dec 2019 10:55:10 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

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

[Prev in Thread] Current Thread [Next in Thread]