mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
51417: Check subscripts in named reference values more rigorously.
This commit is contained in:
parent
acb15e3cc9
commit
f4c706f0c8
3 changed files with 15 additions and 3 deletions
|
@ -350,9 +350,9 @@ F:ksh93 does not implement this either
|
|||
>typeset -A hash=( [y]=HIT )
|
||||
|
||||
unset -n ptr1
|
||||
typeset -n ptr1='not good'
|
||||
typeset -n ptr1='not[2]good'
|
||||
1:invalid nameref
|
||||
*?*invalid variable name: not good
|
||||
*?*invalid variable name: not\[2\]good
|
||||
|
||||
unset -n ptr1
|
||||
unset hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue