Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14806 > unrolled thread
| Started by | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| First post | 2018-11-12 18:55 -0500 |
| Last post | 2018-11-12 18:55 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
nounset and $! behavior Grisha Levit <grishalevit@gmail.com> - 2018-11-12 18:55 -0500
| From | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| Date | 2018-11-12 18:55 -0500 |
| Subject | nounset and $! behavior |
| Message-ID | <mailman.3953.1542067706.1284.bug-bash@gnu.org> |
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
Back to top | Article view | gnu.bash.bug
csiph-web