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

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

2024-01-03 Thread Kerin Millar
On Wed, 3 Jan 2024 22:36:34 +0100 Martin Schulte wrote: > Hello Oğuz! > > > See: > > > > $ ${ case } in }) echo uname; esac } > > Linux > > $ ${ case }x in }x) echo uname; esac } > > bash: command substitution: line 25: syntax error near unexpected token > > `x' > > bash: c

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

2024-01-03 Thread Martin Schulte
Hello Oğuz! > See: > > $ ${ case } in }) echo uname; esac } > Linux > $ ${ case }x in }x) echo uname; esac } > bash: command substitution: line 25: syntax error near unexpected token > `x' > bash: command substitution: line 25: `}x)' > $ ${ case }x in \}x) echo uname;

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

2024-01-03 Thread Chet Ramey
On 1/3/24 8:41 AM, Oğuz wrote: See: $ ${ case } in }) echo uname; esac } Linux $ ${ case }x in }x) echo uname; esac } bash: command substitution: line 25: syntax error near unexpected token `x' bash: command substitution: line 25: `}x)' $ ${ case }x in \}x) echo

inconsistent handling of closing brace inside no-fork command substitution

2024-01-03 Thread Oğuz
See: $ ${ case } in }) echo uname; esac } Linux $ ${ case }x in }x) echo uname; esac } bash: command substitution: line 25: syntax error near unexpected token `x' bash: command substitution: line 25: `}x)' $ ${ case }x in \}x) echo uname; esac } Linux $ I don't