[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "~~" and "~" case-toggling modification undocumented
From: |
Andreas Kusalananda Kähäri |
Subject: |
Re: "~~" and "~" case-toggling modification undocumented |
Date: |
Tue, 5 Apr 2022 17:38:32 +0200 |
On Tue, Apr 05, 2022 at 10:58:33AM -0400, Chet Ramey wrote:
> 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/
Much thanks.
--
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden
.