bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lower case construction does not working properly


From: Michael Kazakov
Subject: Lower case construction does not working properly
Date: Tue, 24 Nov 2015 14:23:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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:
address@hidden:~> VAR=COLORADO
address@hidden:~> echo ${VAR,c}
COLORADO
address@hidden:~> echo ${VAR,,o}
COLORADO
But constructions ${parameter^pattern}/${parameter^^pattern} and ${parameter,,}/${parameter,,} working fine:
address@hidden:~> echo ${VAR,}
cOLORADO
address@hidden:~> echo ${VAR,,}
colorado

VAR=colorado
address@hidden:~> echo ${VAR^o}
colorado
address@hidden:~> echo ${VAR^^o}
cOlOradO
address@hidden:~> echo ${VAR^^c}
Colorado

--
Michael Kazakov
Quotix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]