summaryrefslogtreecommitdiffstats
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-08-09 19:10:01 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-08-09 19:10:01 +0100
commit17d52d69ec696ee2cda77f1e6112d7d74a9e33a5 (patch)
treeae9044a7d97522de52c64aad569206bcd12cb980 /Test/D04parameter.ztst
parent36025: Fix completion aftoer "foo=bar; setopt ". (diff)
downloadzsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar.gz
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar.bz2
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar.lz
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar.xz
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.tar.zst
zsh-17d52d69ec696ee2cda77f1e6112d7d74a9e33a5.zip
Fix retying variables in opposite order.
Now gives an error. Add test.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 0a9e2530c..c7d506a51 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1069,6 +1069,11 @@
>a:b a b
>x:y:z
+ typeset -T tied1 tied2 +
+ typeset -T tied2 tied1 +
+1:Attempts to swap tied variables are safe but futile
+?(eval):typeset:2: already tied as non-scalar: tied2
+
string='look for a match in here'
if [[ ${string%%(#b)(match)*} = "look for a " ]]; then
print $match[1] $mbegin[1] $mend[1] $string[$mbegin[1],$mend[1]]