Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14806 > unrolled thread

nounset and $! behavior

Started byGrisha Levit <grishalevit@gmail.com>
First post2018-11-12 18:55 -0500
Last post2018-11-12 18:55 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

  nounset and $! behavior Grisha Levit <grishalevit@gmail.com> - 2018-11-12 18:55 -0500

#14806 — nounset and $! behavior

FromGrisha Levit <grishalevit@gmail.com>
Date2018-11-12 18:55 -0500
Subjectnounset 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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web