bug-bash
[Top][All Lists]
Advanced

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

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


From: Kerin Millar
Subject: Re: inconsistent handling of closing brace inside no-fork command substitution
Date: Wed, 3 Jan 2024 21:47:24 +0000

On Wed, 3 Jan 2024 22:36:34 +0100
Martin Schulte <gnu@schrader-schulte.de> 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: 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

Neither of those versions support the non-forking command substitution syntax. 
You would need to build bash from the devel branch to reproduce it.

-- 
Kerin Millar



reply via email to

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