about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2015-08-10 17:50:20 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2015-08-10 17:53:44 +0200
commitc6136b94f361ec33fbb231c97ea37a2248080de3 (patch)
treee063920b70a4b933bf9b5fdfcbe644314bc70b1d
parent8d849b9caf6bf9fcc0abbd049d158b88c391e9ac (diff)
downloadzsh-c6136b94f361ec33fbb231c97ea37a2248080de3.tar.gz
zsh-c6136b94f361ec33fbb231c97ea37a2248080de3.tar.xz
zsh-c6136b94f361ec33fbb231c97ea37a2248080de3.zip
36075: Disable ‘local’ keyword in script to make data retrieval work
-rw-r--r--ChangeLog3
-rw-r--r--Util/check-tmux-state4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f6e90310f..f4eac9192 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,9 @@
 	* 36069: Completion/Unix/Command/_tmux: _tmux: Fix \ooo display in
 	completion list
 
+	* 36075: Util/check-tmux-state: Disable ‘local’ keyword in
+	script to make data retrieval work
+
 2015-08-10  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 36045: Test/A05execution.ztst: make effect of failures
diff --git a/Util/check-tmux-state b/Util/check-tmux-state
index 7e293380f..4cba36070 100644
--- a/Util/check-tmux-state
+++ b/Util/check-tmux-state
@@ -40,6 +40,10 @@ differences=none
 # information. For that, we need to put a few stubs into place so sourcing the
 # file doesn't blow up in our face.
 
+# We need to disable the new "local" keyword to make our data retrieval trick
+# work:
+disable -r local
+
 function _arguments () { }
 function _describe () { }
 function local () { }