[Top][All Lists]

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

[PATCH] allow process substitution in POSIX mode

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

Process substitution is disabled in POSIX mode. A 'git blame' on parse.y suggests that this has been the case since bash prehistory.

To me, this seems:

- Inconsistent. Other bash extensions are not disabled when POSIX mode
  is active; as far as I can tell, this is the only one.

- Unnecessary. The <(...) and >(...) syntax is a straightforward syntax
  error in POSIX, so it's not as if this particular extension somehow
  conflicts with POSIX standard scripts.

- Annoying. When a bash-specific script uses functions written for POSIX
  (such as the modernish library), it needs to run in POSIX mode for
  compatibility with those, but can still use every bash extension
  except this one. It just seems pointless.

Would you consider the attached patch, which removes this limitation?


- M.

modernish -- harness the shell

Attachment: procsubst_posixmode.patch
Description: Text document

reply via email to

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