about summary refs log tree commit diff
path: root/Test/A05execution.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-11-08 10:38:05 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-11-08 10:38:05 +0000
commitaba936b17cca86ee0742341f23f0f96795a23275 (patch)
tree9ddbe362d29bf5ca63ba0808e06efb7388b2e38f /Test/A05execution.ztst
parentf367a90505811cf2125549e4d376c33f691bde57 (diff)
downloadzsh-aba936b17cca86ee0742341f23f0f96795a23275.tar.gz
zsh-aba936b17cca86ee0742341f23f0f96795a23275.tar.xz
zsh-aba936b17cca86ee0742341f23f0f96795a23275.zip
22981: Zvi Har'el: bad call from 22952
22980: add hook array for special functions
Diffstat (limited to 'Test/A05execution.ztst')
-rw-r--r--Test/A05execution.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index 202a4bb7a..e731d1109 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -105,6 +105,18 @@
 0q:chpwd
 >Changed to $ZTST_testdir/command.tmp
 
+  chpwd() { print chpwd: changed to $PWD; }
+  chpwdfn1()  { print chpwdfn1: changed to $PWD; }
+  chpwdfn2()  { print chpwdfn2: changed to $PWD; }
+  chpwd_functions=(chpwdfn1 '' chpwdnonexistentfn chpwdfn2)
+  cd .
+  unfunction chpwd
+  unset chpwd_functions
+0q:chpwd_functions
+>chpwd: changed to $ZTST_testdir/command.tmp
+>chpwdfn1: changed to $ZTST_testdir/command.tmp
+>chpwdfn2: changed to $ZTST_testdir/command.tmp
+
 # Hard to test periodic, precmd and preexec non-interactively.
 
   fn() { TRAPEXIT() { print Exit; }; }