mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
21215: clean up after autoloaded trap test
This commit is contained in:
parent
06af163bbd
commit
36136b9671
2 changed files with 11 additions and 2 deletions
|
|
@ -228,14 +228,14 @@
|
|||
# Autoloaded traps are horrid, but unfortunately people expect
|
||||
# them to work if we support them.
|
||||
echo "print Running exit trap" >TRAPEXIT
|
||||
$ZTST_testdir/../Src/zsh -fc '
|
||||
${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
|
||||
fpath=(. $fpath)
|
||||
autoload TRAPEXIT
|
||||
print "Exiting, attempt 1"
|
||||
exit
|
||||
print "What?"
|
||||
'
|
||||
$ZTST_testdir/../Src/zsh -fc '
|
||||
${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
|
||||
fpath=(. $fpath)
|
||||
autoload TRAPEXIT;
|
||||
fn() { print Some function }
|
||||
|
|
@ -249,3 +249,7 @@
|
|||
>Some function
|
||||
>Exiting, attempt 2
|
||||
>Running exit trap
|
||||
|
||||
%clean
|
||||
|
||||
rm -f TRAPEXIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue