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.
I wonder if this is on purpose due to some instability or other
deficiency in the code, or whether it's an oversight (hence this bug
report).
--
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden
.