Re: inconsistent handling of closing brace inside no-fork command substitution

2024-01-04 Thread Chet Ramey
On 1/3/24 4:36 PM, Martin Schulte wrote: I couldn't reproduce this with neither 5.1.4 nor 5.2.15 - in both cases ${ case } in }) echo uname; esac } results in bash: syntax error near unexpected token `)' https://lists.gnu.org/archive/html/bug-bash/2023-05/msg00042.html -- ``The lyf so shor

nofork command substitution bugs

2024-01-04 Thread Oğuz
These bugs affect the development branch only. 1. `wait -n' doesn't work inside nofork command substitution. I think it should, or wait without `-n' shouldn't work either, or what works and what doesn't should be documented. $ sleep 3 & sleep 1; echo ${| wait -n -p REPLY;} [1] 433 $