zsh-workers
 help / color / mirror / code / Atom feed
* trap DEBUG + set -o DEBUG_BEFORE_CMD not setting $? nonzero in current CVS
@ 2008-08-04 10:08 Rocky Bernstein
  2008-08-04 17:49 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Rocky Bernstein @ 2008-08-04 10:08 UTC (permalink / raw)
  To: zsh-workers

The following code doesn't show $? as nonzero inside trap DEBUG using the
CVS source I just downloaded and built.

However I don't get this problem on the Ubuntu zsh-beta or zsh.
Removing DEBUG_BEFORE_CMD (or I guess having debug run after the
command) does set/show $? properly.

#!/tmp/zsh/Src/zsh -f
#!/src/external-cvs/zsh/Src/zsh -f
set -o DEBUG_BEFORE_CMD
trap 'print $?' DEBUG
fdasfsdafd  # invalid command
:

Thanks.


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

end of thread, other threads:[~2008-08-06  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-04 10:08 trap DEBUG + set -o DEBUG_BEFORE_CMD not setting $? nonzero in current CVS Rocky Bernstein
2008-08-04 17:49 ` Peter Stephenson
2008-08-05  8:33   ` Peter Stephenson
2008-08-05 23:25     ` Rocky Bernstein
2008-08-06  8:49       ` Peter Stephenson

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