On 11/12/18 6:55 PM, Grisha Levit wrote:
> The following crashes bash:
> 
> bash-5.0$ set -u
> bash-5.0$ echo ${!,}
> bash: $!: unbound variable
> bash: !: unbound variable

How does it `crash bash'? There's an extra error message, but it correctly
notes that $! is not set. If the shell is not interactive, it exits.


> Testing if $! is set also doesn't seem to be possible:
> 
> bash-5.0$ echo ${!-}
> bash: $!: unbound variable

Yes, this should work.

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

Reply via email to