Re: quoting in shell parameter expressions

2017-06-21 Thread Joerg Schilling
Joerg Schilling wrote: > Jilles Tjoelker wrote: > > > special treatment of $ { } until expansion time. Now that ${param#word} > > exists which has its own quoting state for the inner word, that is no > > longer possible. This was also taken advantage of to allow things like > > your example "${x

Re: quoting in shell parameter expressions

2017-06-21 Thread Joerg Schilling
Jilles Tjoelker wrote: > special treatment of $ { } until expansion time. Now that ${param#word} > exists which has its own quoting state for the inner word, that is no > longer possible. This was also taken advantage of to allow things like > your example "${xxx-"a b c"}"; the original Bourne sh

Re: quoting in shell parameter expressions

2017-06-20 Thread Robert Elz
Date:Tue, 20 Jun 2017 23:17:01 +0200 From:Jilles Tjoelker Message-ID: <20170620211701.ga90...@stack.nl> | (for example, expand a | variable literally if it is set and generate pathnames otherwise using | "${v-"*"}"). Yes, it does - however what can be relevant

Re: quoting in shell parameter expressions

2017-06-20 Thread Robert Elz
Date:Tue, 20 Jun 2017 16:02:10 +0200 From:Joerg Schilling Message-ID: <59492ae2.x1jxamf6tbnxjnad%joerg.schill...@fokus.fraunhofer.de> | While most of the corner cases could be correctly identified on how to | expand them, the four cases he included with quoting, c

Re: quoting in shell parameter expressions

2017-06-20 Thread Robert Elz
Date:Tue, 20 Jun 2017 11:26:54 -0400 From:shwares...@aol.com Message-ID: | I thought we touched upon this also in discussing adding $'...', with the | resolution the arguments were WORDs in the grammatical sense and to be | scanned that way with regards to q

Re: quoting in shell parameter expressions

2017-06-20 Thread Jilles Tjoelker
On Tue, Jun 20, 2017 at 04:02:10PM +0200, Joerg Schilling wrote: > Geoff Clare wrote: > > Joerg Schilling wrote, on 20 Jun 2017: > > > I would like to get a confirmation on how this expression: > > > "${xxx-"a b c"}" > > > is to be understood. > > This was discussed when we worked on bug 2

Re: quoting in shell parameter expressions

2017-06-20 Thread SHwareSyst
I thought we touched upon this also in discussing adding $'...', with the resolution the arguments were WORDs in the grammatical sense and to be scanned that way with regards to quoting. This would supercede that clause in 221, as the standard choosing between conflicting interpretations inst

Re: quoting in shell parameter expressions

2017-06-20 Thread Joerg Schilling
Geoff Clare wrote: > Joerg Schilling wrote, on 20 Jun 2017: > > > > I would like to get a confirmation on how this expression: > > > > "${xxx-"a b c"}" > > > > is to be understood. > > This was discussed when we worked on bug 221, and is made explicitly > unspecified by the resolution of t

Re: quoting in shell parameter expressions

2017-06-20 Thread Geoff Clare
Joerg Schilling wrote, on 20 Jun 2017: > > I would like to get a confirmation on how this expression: > > "${xxx-"a b c"}" > > is to be understood. This was discussed when we worked on bug 221, and is made explicitly unspecified by the resolution of that bug (to be applied in Issue 8). S

quoting in shell parameter expressions

2017-06-20 Thread Joerg Schilling
Hi, this is a question to Geoff Clare I would like to get a confirmation on how this expression: "${xxx-"a b c"}" is to be understood. In special, is "${xxx-" a quoted partial string or is "a b c" a quoted partial string Note that only ksh93 expands this to thr