Re: Lower case construction does not working properly

2015-11-26 Thread Chet Ramey
On 11/24/15 9:23 AM, Pierre Gaston wrote: > As an aside shopt -s nocasematch and shopt -s nocaseglob don't seem to > apply, with both on: > > $ VAR=COLORADO; echo ${VAR,[c]} > COLORADO It doesn't seem to make sense to disregard case in a word expansion that directly tests and manipulates charact

Re: Lower case construction does not working properly

2015-11-24 Thread Greg Wooledge
On Tue, Nov 24, 2015 at 02:23:20PM +0200, Michael Kazakov wrote: > I have founded a bug in variable manipulation behavior of bash version > 4.2.53. > Constructions ${parameter,pattern} and ${parameter,,pattern} does not > working properly: > michael@kazakov:~> VAR=COLORADO > michael@kazakov:~> ec

Re: Lower case construction does not working properly

2015-11-24 Thread Pierre Gaston
On Tue, Nov 24, 2015 at 2:23 PM, Michael Kazakov wrote: > Hellol. > I have founded a bug in variable manipulation behavior of bash version > 4.2.53. > Constructions ${parameter,pattern} and ${parameter,,pattern} does not > working properly: > michael@kazakov:~> VAR=COLORADO > michael@kazakov:~> e

Lower case construction does not working properly

2015-11-24 Thread Michael Kazakov
Hellol. I have founded a bug in variable manipulation behavior of bash version 4.2.53. Constructions ${parameter,pattern} and ${parameter,,pattern} does not working properly: michael@kazakov:~> VAR=COLORADO michael@kazakov:~> echo ${VAR,c} COLORADO michael@kazakov:~> echo ${VAR,,o} COLORADO But