zsh-users
 help / color / mirror / code / Atom feed
* -u option does not work with recursive expansion?
@ 2019-02-14 23:07 Dominik Vogt
  2019-02-14 23:45 ` Mikael Magnusson
  0 siblings, 1 reply; 5+ messages in thread
From: Dominik Vogt @ 2019-02-14 23:07 UTC (permalink / raw)
  To: Zsh Users

Why does the recursive expansion of foo not trigger an error
message with the -u option?  Is that a bug?  Is there some
woraround to get the expected error behaviour in all cases?

-- snip --
set -u
foo=bar
unset bar
# ==> bar: parameter not set
echo $bar
# ==> no error?
echo ${${foo}}
-- snip --

 $ zsh --version
 zsh 5.3.1 (x86_64-...-...-gnu)

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-15  1:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 23:07 -u option does not work with recursive expansion? Dominik Vogt
2019-02-14 23:45 ` Mikael Magnusson
2019-02-15  0:41   ` Dominik Vogt
2019-02-15  1:10     ` Bart Schaefer
2019-02-15  1:41     ` Matthew Martin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).