diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-01-29 21:17:48 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-01 01:49:45 +0000 |
commit | ad1b46578eb08415d6142aaf558ff5f59fa2e179 (patch) | |
tree | eb9cb01d5a676a112bd75438f38f249ef60d1d6a /Test | |
parent | 0e25f1cb4d8057c428280baf49df8bd26415e76b (diff) | |
download | zsh-ad1b46578eb08415d6142aaf558ff5f59fa2e179.tar.gz zsh-ad1b46578eb08415d6142aaf558ff5f59fa2e179.tar.xz zsh-ad1b46578eb08415d6142aaf558ff5f59fa2e179.zip |
40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing array
Diffstat (limited to 'Test')
-rw-r--r-- | Test/E01options.ztst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 343d5a9c1..2bd4fdb1a 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1137,6 +1137,8 @@ ( foo1=global1 foo2=global2 foo3=global3 foo4=global4 integer foo5=5 + # skip foo6, defined in fn_wnv + foo7=(one two) fn_wnv() { # warns foo1=bar1 @@ -1161,6 +1163,8 @@ integer foo6=9 # doesn't warn (( foo6=10 )) + foo7[3]=three + foo7[4]=(four) } print option off >&2 fn_wnv |