Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trap DEBUG + set -o DEBUG_BEFORE_CMD not setting $? nonzero in current CVS
- X-seq: zsh-workers 25383
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: trap DEBUG + set -o DEBUG_BEFORE_CMD not setting $? nonzero in current CVS
- Date: Mon, 4 Aug 2008 06:08:39 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=0xDeuimslXObLVeqwe412Q2HKE4YFoJGRGbDIsTwqRw=; b=lK0Vmm8WMhudNDzCjBHYsBpzNQMpWYn0JvCuk0bXbPaQrLqw/lrKaxg2ZZPQDAvaLm TslT5CjlatHC8ISB2fgUicKYwEry5GDyu9Pp6jTcl6ZjFIpIxnuJUvcO6rr+POCAPWzC 23rBNLkAovHEGDVdzqs5RajlwOtxviQSafH60=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=u63Pf9Lr+HPo/6LEaI0zQjjTSVZ98Y8Yg9icl2QztYQYKyoacPbrgKQ+oa5LjmzopE hpLM+y4/OgfWuUCiydr+djqE9ck8cc/v2LcaT0Ba01v6it2en+ElCCeuRUIUBvpgb1uq 5V2L+OA/g8KgqWbH9Y09p7IbA7w0GzCBvLfCQ=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author