From aba936b17cca86ee0742341f23f0f96795a23275 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 8 Nov 2006 10:38:05 +0000 Subject: 22981: Zvi Har'el: bad call from 22952 22980: add hook array for special functions --- Test/A05execution.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test') 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; }; } -- cgit 1.4.1