From: Greg Klanderman <gak@klanderman.net>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: problem with push-line-or-edit and precmd?
Date: Fri, 16 Jan 2009 17:21:25 -0500 [thread overview]
Message-ID: <18801.2149.303884.532633@gargle.gargle.HOWL> (raw)
Hi,
I just noticed this while testing a patch to add a special
zle-line-finish widget, and thought it was due to my changes
but have now found the same behavior in pristine 4.3.9 and
4.2.5 builds.
Running "zsh -f",
lwm% function foo () { return $1 }
lwm% function precmd () { local x=$? ; (( $x != 0 )) && echo "=> exit status $x" }
lwm% foo 4
=> exit status 4
lwm% true
lwm%
lwm% echo ' ## type: <return>
quote> ## type: ESC-x push-line-or-edit <return>
=> exit status 1
lwm% echo '
Notice the precmd is run when the push-line-or-edit widget is invoked,
and that $? is set to 1 in the precmd.
Is it expected that precmd would be run here?
And if so, why is a non-zero exit status set?
thanks,
Greg
next reply other threads:[~2009-01-16 22:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 22:21 Greg Klanderman [this message]
2009-01-17 4:08 ` Bart Schaefer
2009-01-17 6:39 ` Greg Klanderman
2009-01-17 19:06 ` Bart Schaefer
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=18801.2149.303884.532633@gargle.gargle.HOWL \
--to=gak@klanderman.net \
--cc=zsh-workers@sunsite.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).