On 11/13/20 3:50 PM, L A Walsh wrote:
On 2020/11/13 09:01, Chet Ramey wrote:
On 11/12/20 6:19 PM, Léa Gris wrote:
declare -c to capitalize first character of string in variable

Thanks for the reminder. I keep forgetting to turn this off. It's too late
for bash-5.1, but I have it tagged to flip to disabled by default in
config-top.h in bash-5.2.
---
    It is replaced with something else?

There's nothing to directly replace `declare -c', which was a bad idea to
begin with. You can use the new @u parameter transformation operator to
replace ${v~}. The ability to use the pattern in @{v~[pattern]} wasn't a
great idea either.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to