bug-bash
[Top][All Lists]
Advanced

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

Re: [ping] declare -c still undocumented.


From: Chet Ramey
Subject: Re: [ping] declare -c still undocumented.
Date: Fri, 13 Nov 2020 16:01:51 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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