From 17d52d69ec696ee2cda77f1e6112d7d74a9e33a5 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sun, 9 Aug 2015 19:10:01 +0100
Subject: Fix retying variables in opposite order. Now gives an error. Add
test.
---
Test/D04parameter.ztst | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'Test/D04parameter.ztst')
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]]
--
cgit 1.4.1