Re: empty quotes break pattern replacements in bash-4.2

2011-02-18 Thread Mike Frysinger
On Friday, February 18, 2011 23:17:11 Chet Ramey wrote: > On 2/18/11 9:06 PM, Mike Frysinger wrote: > > this simple code no longer works in bash-4.2: > > $ f=abc; echo ${f##""a} > > abc > > same goes for ${f//""a} and ${f%%""c}, and perhaps more operations > > One more: everything that calls getpa

Re: empty quotes break pattern replacements in bash-4.2

2011-02-18 Thread Chet Ramey
On 2/18/11 9:06 PM, Mike Frysinger wrote: > this simple code no longer works in bash-4.2: > $ f=abc; echo ${f##""a} > abc > same goes for ${f//""a} and ${f%%""c}, and perhaps more operations One more: everything that calls getpattern(). > removing the quotes, or quoting the single char in questio

empty quotes break pattern replacements in bash-4.2

2011-02-18 Thread Mike Frysinger
this simple code no longer works in bash-4.2: $ f=abc; echo ${f##""a} abc same goes for ${f//""a} and ${f%%""c}, and perhaps more operations removing the quotes, or quoting the single char in question, makes it work: $ f=abc; echo ${f##a} ${f##"a"} bc bc the original bug report uses variables in