[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "~~" and "~" case-toggling modification undocumented
From: |
Chet Ramey |
Subject: |
Re: "~~" and "~" case-toggling modification undocumented |
Date: |
Tue, 5 Apr 2022 10:58:33 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
On 4/5/22 10:49 AM, Andreas Kusalananda Kähäri wrote:
> When the ",", ",,", "^", and "^^" case-modifying operators were
> introduced with Bash 4.0 some 13 years ago, the operators "~" and "~~"
> were also introduced. These toggle the case of the first character that
> match the pattern ("~") or the all characters that match the pattern
> ("~~") in a similar manner as up-casing and down-casing is done with "^"
> and ",".
>
> However, as far as I can see, the case-toggling operators remain
> undocumented.
https://lists.gnu.org/archive/html/bug-bash/2019-08/msg00001.html
--
``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/