[Toybox] bash continues to confuse me.
Chet Ramey
chet.ramey at case.edu
Sun Jul 5 15:55:54 PDT 2020
On 7/1/20 4:50 PM, Chet Ramey wrote:
>> But implementing it seems tricky: ${x;%} reliably errors whether or not x is
>> set, ${x~#%} never does (I can't find what ~ is supposed to do here in the man
>> page,
>
> Of course the first one errors -- `x;' is not a valid parameter name (and
> we won't even talk about the missing pattern after `%'). I don't think
> there's any argument there.
>
> The second case is clearly a bug. It should produce an error.
My fault. I thought I had disabled that feature, but it's still in there.
It's one of the case-changing operators (the undocumented case-toggling
one). It's not particularly useful.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet at case.edu http://tiswww.cwru.edu/~chet/
More information about the Toybox
mailing list