Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
-u option does not work with recursive expansion?
- X-seq: zsh-users 23869
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: -u option does not work with recursive expansion?
- Date: Fri, 15 Feb 2019 00:07:43 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: dominik.vogt@xxxxxx
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