On 8/27/25 2:16 PM, Zachary Santer wrote:
On Wed, Aug 27, 2025 at 1:40 PM Chet Ramey <chet.ra...@case.edu> wrote:

This has never been documented.

In theory, since it's never been documented, I could flip the define in
config-top.h and disable it by default. I thought about doing that for
bash-5.2, but did not.

It's never been documented, and you discourage its use, just because
you don't like the syntax that you created?

I think it's very niche use for shell scripting and doesn't need to be a
supported part of the shell.

The upper and lowercase features were user requested. The business of
making them into a parameter expansion with the ability to specify the
modified characters was my invention, and I think it's overkill. That's
why I think the parameter transformations, which work on the entire
value, are a better fit for script use.

I added the case-toggling feature, but I think the tilde was a poor
choice (though the best available) and, again, the ability to specify
a pattern is overkill. I think a parameter transformation would have
been sufficient here, too, but these came before the transformation
operators.


--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to