[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inconsistent handling of closing brace inside no-fork command substi
From: |
Martin Schulte |
Subject: |
Re: inconsistent handling of closing brace inside no-fork command substitution |
Date: |
Wed, 3 Jan 2024 22:36:34 +0100 |
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; esac }
> Linux
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 `)'
Any help appreciated!
Thanks,
Martin