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

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Martijn Dekker <martijn@inlv.org>
Newsgroups gnu.bash.bug
Subject Re: [PATCH] allow process substitution in POSIX mode
Date Sun, 8 Dec 2019 10:55:10 +0100
Lines 25
Approved bug-bash@gnu.org
Message-ID <mailman.514.1575798924.1979.bug-bash@gnu.org> (permalink)
References <CAH7i3Lry2miuSJJbXdWDMFfE7y0dSCVyc3W0XbYsFfFVwpQJqQ@mail.gmail.com> <51aadcec-1e21-32e9-d43f-5b84696de302@inlv.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1575798925 7599 209.51.188.17 (8 Dec 2019 09:55:25 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
In-Reply-To <CAH7i3Lry2miuSJJbXdWDMFfE7y0dSCVyc3W0XbYsFfFVwpQJqQ@mail.gmail.com>
Content-Language en-GB
X-MIME-Autoconverted from 8bit to quoted-printable by kahlil.inlv.org id xB89tAZR021184
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From 37.59.109.123
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <51aadcec-1e21-32e9-d43f-5b84696de302@inlv.org>
X-Mailman-Original-References <CAH7i3Lry2miuSJJbXdWDMFfE7y0dSCVyc3W0XbYsFfFVwpQJqQ@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15707

Show key headers only | 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