Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-17 Thread Chet Ramey
On 9/17/16 7:38 AM, Joerg Schilling wrote: > Chet Ramey wrote: > >>> But please explain (character by character) why you create an output that >>> is in >>> conflict with the reference implementation (a patched ksh88). >> >> `Character by character'? Really? >> >> (And

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-17 Thread Joerg Schilling
Chet Ramey wrote: > > But please explain (character by character) why you create an output that > > is in > > conflict with the reference implementation (a patched ksh88). > > `Character by character'? Really? > > (And obviously the so-called `reference implementation'

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-17 Thread Joerg Schilling
Vincent Lefevre wrote: > > > but the other shells regard them as special: > > > > > > $ foo=abcdef; echo "${foo#'ab'}" > > > cdef > > > > > > So, is this also unspecified like double quotes? Or should it > > > be specified that they are special, in which case, dash /

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-10 Thread Chet Ramey
On 9/9/16 7:30 PM, shwares...@aol.com wrote: > To me the contexts are, for "${foo-'a"b'"}" as a stream of characters: > begin double quote stream part > begin substitution > parameter-name dash-op begin argument word > begin single quote stream part Stop here. There is no "single

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-09 Thread Vincent Lefevre
On 2016-09-09 09:02:11 -0400, Chet Ramey wrote: > On 9/9/16 7:44 AM, Vincent Lefevre wrote: > > On 2016-09-05 19:12:54 +, Mark Galeck wrote: > >> The standard says in the section 2.2.3 on Double-Quotes and $ : > >> "even number of unescaped double-quotes or single-quotes, if any, > >> shall

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-09 Thread Chet Ramey
On 9/9/16 7:44 AM, Vincent Lefevre wrote: > On 2016-09-05 19:12:54 +, Mark Galeck wrote: >> The standard says in the section 2.2.3 on Double-Quotes and $ : >> "even number of unescaped double-quotes or single-quotes, if any, >> shall occur". > > Concerning this point, these even number of

Re: Quoting: is "${foo-'a"b'"}" valid?

2016-09-09 Thread Steffen Nurpmeso
shwares...@aol.com wrote: ||> The standard says in the section 2.2.3 on Double-Quotes and $ : ||> "even number of unescaped double-quotes or single-quotes, if any, ||> shall occur". || ||Concerning this point, these even number of double-quotes and even ||number of single-quotes are