zsh-users
 help / color / mirror / code / Atom feed
* Trap and exit
@ 2000-10-27 10:44 Akim Demaille
  2000-10-27 11:37 ` Andrej Borsenkow
  0 siblings, 1 reply; 11+ messages in thread
From: Akim Demaille @ 2000-10-27 10:44 UTC (permalink / raw)
  To: zsh-users


I am not claiming this is a bug in Zsh, but I confess I prefer the
behavior from Bash and Ash.

/tmp % cat foo.sh                                                nostromo 12:42
#! /bin/sh
trap 'echo trap: $?' 0
exit 59
/tmp % ash ./foo.sh                                              nostromo 12:42
trap: 59
/tmp % bash ./foo.sh                                            nostromo Err 59
trap: 59
/tmp % zsh ./foo.sh                                             nostromo Err 59
trap: 0
/tmp %                                                          nostromo Err 59

What do you think?


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2000-10-27 15:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-27 10:44 Trap and exit Akim Demaille
2000-10-27 11:37 ` Andrej Borsenkow
2000-10-27 11:49   ` Andrej Borsenkow
2000-10-27 12:47     ` Akim Demaille
2000-10-27 13:05       ` Andrej Borsenkow
2000-10-27 12:46   ` Akim Demaille
2000-10-27 13:06     ` Andrej Borsenkow
2000-10-27 13:19   ` Peter Stephenson
2000-10-27 13:28     ` Akim Demaille
2000-10-27 13:39     ` Andrej Borsenkow
2000-10-27 15:26       ` Bart Schaefer

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).