diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-23 15:30:22 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-23 15:30:22 +0000 |
| commit | fc4511ecb7b68916220edd0bbdf67b2b8eac62d0 (patch) | |
| tree | 608a56abf719c8a1e61263b4aa2a769a782973b1 /Test/D06subscript.ztst | |
| parent | Test for (kK) subscript flags bugfix. (diff) | |
| download | zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.gz zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.bz2 zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.lz zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.xz zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.zst zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.zip | |
Fix subscripting bug with backslash-double-quote.
Diffstat (limited to 'Test/D06subscript.ztst')
| -rw-r--r-- | Test/D06subscript.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst index 9bcf28374..4a96b01ab 100644 --- a/Test/D06subscript.ztst +++ b/Test/D06subscript.ztst @@ -145,3 +145,18 @@ 0:Associative array keys interpreted as patterns >\2 backcbrack cbrack star >\\\4 \\\? star zounds + + typeset "A[one\"two\"three\"quotes]"=QQQ + typeset 'A[one\"two\"three\"quotes]'=qqq + print -R "$A[one\"two\"three\"quotes]" + print -R $A[one\"two\"three\"quotes] + A[one"two"three"four"quotes]=QqQq + print -R $A[one"two"three"four"quotes] + print -R $A[$A[(i)one\"two\"three\"quotes]] + print -R "$A[$A[(i)one\"two\"three\"quotes]]" +0:Associative array keys with double quotes +>QQQ +>qqq +>QqQq +>qqq +>QQQ |
