1
0
Fork 0
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:
Bart Schaefer 2023-02-12 12:20:33 -08:00
parent acb15e3cc9
commit f4c706f0c8
3 changed files with 15 additions and 3 deletions

View file

@ -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