Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15707

Re: [PATCH] allow process substitution in POSIX mode

From Martijn Dekker <martijn@inlv.org>
Newsgroups gnu.bash.bug
Subject Re: [PATCH] allow process substitution in POSIX mode
Date 2019-12-08 10:55 +0100
Message-ID <mailman.514.1575798924.1979.bug-bash@gnu.org> (permalink)
References <CAH7i3Lry2miuSJJbXdWDMFfE7y0dSCVyc3W0XbYsFfFVwpQJqQ@mail.gmail.com> <51aadcec-1e21-32e9-d43f-5b84696de302@inlv.org>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] allow process substitution in POSIX mode Martijn Dekker <martijn@inlv.org> - 2019-12-08 10:55 +0100

csiph-web