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 obviously the so-called `

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' doesn't reflect > the int

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 / ash > > > are buggy? > > >

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

2016-09-17 Thread Joerg Schilling
Geoff Clare wrote: > > in dash 0.5.8-2.3 and in BusyBox v1.22.1 sh (ash): > > > > $ foo=abcdef; echo "${foo#'ab'}" > > abcdef > > > > but the other shells regard them as special: > > > > $ foo=abcdef; echo "${foo#'ab'}" > > cdef > > > > So, is this also unspecified like double quotes? Or shou

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

2016-09-17 Thread Joerg Schilling
Vincent Lefevre wrote: > I cannot see in Issue 7 how they are supposed to be special here. > And > > http://austingroupbugs.net/view.php?id=221 > > doesn't seem to change anything. At least, they are *not* special > in dash 0.5.8-2.3 and in BusyBox v1.22.1 sh (ash): This is a patched version f