Closed mayrholu closed 10 months ago
Where is this language feature documented? I can't find it in man bash
, nor by googling for "shell case toggle".
Interesting, and it does work, although Bash appears to not have it documented at all and the only test for it is disabled.
I'm very reluctant to support a language feature that isn't documented. For all we know, it could be an accident or a historical feature that is in some stage of removal.
I'm going to close this for now per the above - this is not planned as long as it's not documented. Happy to reopen if new information is brought forward.
When using case toggle such as
echo ${PROJECT~~}
an (unintuitive) error is thrown:<file, line...>: LitWord cannot be followed by a word
Remove the
~~
and the error is gone.Let me know if you need additional info.