bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nounset and $! behavior


From: Grisha Levit
Subject: nounset and $! behavior
Date: Mon, 12 Nov 2018 18:55:37 -0500

The following crashes bash:

bash-5.0$ set -u
bash-5.0$ echo ${!,}
bash: $!: unbound variable
bash: !: unbound variable
bash-5.0$ echo ${!,}
bash: $!: unbound variable

Testing if $! is set also doesn't seem to be possible:

bash-5.0$ echo ${!-}
bash: $!: unbound variable


reply via email to

[Prev in Thread] Current Thread [Next in Thread]