Re: Can't wait for process substitution redirected for a subshell

2018-04-25 Thread Chet Ramey
On 4/24/18 4:46 PM, Geir Hauge wrote: > Waiting on a process substitution that is used in redirection for a > command grouping works, but not when using a subshell in place of that > command grouping: > > $ TIMEFORMAT=%R > $ time bash -c '{ :; } 2> >(sleep 2); wait "$!"' > 2.013 >

[BUG] persistently assigned variable cannot be unexported in POSIX mode

2018-04-25 Thread Martijn Dekker
POSIX allows assignments preceding special builtins such as ':', 'set', etc. not only to persist but also to be persistently exported. I think that exporting behaviour is inherently broken and it's unfortunate that bash does this in POSIX mode, as it's merely allowed and not actually mandated,