diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A05execution.ztst | 12 |
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; }; } |