Re: unbalanced parenthesis not recognized

2021-11-22 Thread Greg Wooledge
On Mon, Nov 22, 2021 at 09:03:39AM +0100, Harald Dunkel wrote: > > : ${SSLDIR}:="${JM_WORK}/ssl"} > Surely I can just speak for myself, but to me it appears obvious that > there is something weird and that there is one closing bracket too much > in this line. I understand that bash doesn't produce

Re: unbalanced parenthesis not recognized

2021-11-22 Thread Harald Dunkel
Hi Chet, On 2021-11-19 16:27:34, Chet Ramey wrote: On 11/19/21 2:02 AM, Harald Dunkel wrote: "Some scenarios" is the point here. The parenthesis have to balance as soon as it comes to shell parameter expansion, which is (or should have been) the case here. OK. Let's look at the original exa

Re: unbalanced parenthesis not recognized

2021-11-19 Thread Chet Ramey
On 11/19/21 2:02 AM, Harald Dunkel wrote: "Some scenarios" is the point here. The parenthesis have to balance as soon as it comes to shell parameter expansion, which is (or should have been) the case here. OK. Let's look at the original example: : ${SSLDIR}:="${JM_WORK}/ssl"} Where do you

Re: unbalanced parenthesis not recognized

2021-11-19 Thread Greg Wooledge
On Fri, Nov 19, 2021 at 08:02:19AM +0100, Harald Dunkel wrote: > On 2021-11-18 17:52:29, Robert Elz wrote: > > Date:Thu, 18 Nov 2021 10:34:40 +0100 > > From:Harald Dunkel > > Message-ID: > > > >| at least due to unbalanced parenthesis? > > > > Greg's reply wa

Re: unbalanced parenthesis not recognized

2021-11-18 Thread Harald Dunkel
On 2021-11-18 17:52:29, Robert Elz wrote: Date:Thu, 18 Nov 2021 10:34:40 +0100 From:Harald Dunkel Message-ID: | at least due to unbalanced parenthesis? Greg's reply was correct, but he didn't explicitly address that point. In sh, characters like { } [ ] (but

Re: unbalanced parenthesis not recognized

2021-11-18 Thread Robert Elz
Date:Thu, 18 Nov 2021 10:34:40 +0100 From:Harald Dunkel Message-ID: | at least due to unbalanced parenthesis? Greg's reply was correct, but he didn't explicitly address that point. In sh, characters like { } [ ] (but not ( and )) are just characters. In some scena

Re: unbalanced parenthesis not recognized

2021-11-18 Thread Greg Wooledge
On Thu, Nov 18, 2021 at 10:34:40AM +0100, Harald Dunkel wrote: > Hi folks, > > I am not sure, but shouldn't bash 5.1.4 complain about > > : ${SSLDIR}:="${JM_WORK}/ssl"} There's no syntax error here. It may be a bug, in the sense that it doesn't do what you wanted it to do, but from the sh

unbalanced parenthesis not recognized

2021-11-18 Thread Harald Dunkel
Hi folks, I am not sure, but shouldn't bash 5.1.4 complain about : ${SSLDIR}:="${JM_WORK}/ssl"} at least due to unbalanced parenthesis? The correct version would be : ${SSLDIR:="${JM_WORK}/ssl"} Regards Harri