Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trap problem
- X-seq: zsh-workers 5655
- From: Thomas Ziehmer <ziehmer@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: trap problem
- Date: Fri, 5 Mar 1999 12:32:12 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Hallo,
with zsh 3.1.5 (the only tested version) on SGI and HP, but not on Linux, AIX
and Solaris (there it works correct), the following script produces a wrong
output:
#!/usr/local/bin/zsh
function foo { \
echo step 1
ps
echo step 2
{ echo abcdef ; ps ; } | cat -
echo step 3
}
trap " foo ; exit " INT QUIT TERM HUP
{ time sleep 30 </dev/null ; } 2>/dev/null
ziehmer@o2000 [ziehmer]> t < t
^C
step 1
PID TTY TIME CMD
21263 ttyq27 0:00 zsh-3.1.5
23753 ttyq27 0:00 ps
24969 ttyq27 0:00 t
step 2
abcdef
step 3
The output of the second ps-command is not shown.
Why?
Regards
Thomas Ziehmer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author