From: Thomas Ziehmer <ziehmer@rhrk.uni-kl.de>
To: zsh-workers@sunsite.auc.dk
Subject: trap problem
Date: Fri, 5 Mar 1999 12:32:12 +0100 [thread overview]
Message-ID: <19990305123212.A24019@digger.rhrk.uni-kl.de> (raw)
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
next reply other threads:[~1999-03-05 11:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-05 11:32 Thomas Ziehmer [this message]
1999-03-05 11:24 ` Peter Stephenson
2001-03-29 3:39 Tanaka Akira
2001-03-29 5:58 ` Bart Schaefer
2001-03-30 7:57 ` Tanaka Akira
2001-03-30 9:36 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990305123212.A24019@digger.rhrk.uni-kl.de \
--to=ziehmer@rhrk.uni-kl.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).