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


Groups > gnu.bash.bug > #14806

nounset and $! behavior

From Grisha Levit <grishalevit@gmail.com>
Newsgroups gnu.bash.bug
Subject nounset and $! behavior
Date 2018-11-12 18:55 -0500
Message-ID <mailman.3953.1542067706.1284.bug-bash@gnu.org> (permalink)

Show all headers | View raw


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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web