Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

-u option does not work with recursive expansion?



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



Messages sorted by: Reverse Date, Date, Thread, Author