From: Phil!Gregory <phil_g@pobox.com>
To: zsh-users@sunsite.dk
Subject: Re: $? being clobbered?
Date: Mon, 14 Jul 2003 15:51:02 -0400 [thread overview]
Message-ID: <20030714195102.GA9287@mithrandir.aperiodic.net> (raw)
In-Reply-To: <1030714192541.ZM6620@candle.brasslantern.com>
* Bart Schaefer <schaefer@brasslantern.com> [2003-07-14 19:25 +0000]:
> There's code in the precmd handler to preserve and restore $? but nothing
> similar is done during prompt expansion.
I think my best approach is to move all program execution to precmd.
> Is there some reason to execute the command every time the prompt is
> printed? That is, does the command change from one prompt to the next?
Yes, because it's actually $(echoti cub $COLUMNS) and I wish it to
work even when the terminal is resized.
> I feel compelled to remark that moving 80 columns left seems an odd way of
> achieving 'setopt promptcr'.
...which is even on by default. The existing stuff is left over from my
old bash prompt; didn't realize zsh did it for me. (Actually, the full
code did a clear-to-end-of-display, too, which zsh also appears to do by
default.)
I still have an invocation of apm while I'll have to move.
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
Too many people are thinking of security instead of opportunity. They
seem more afraid of life than death.
-- James F. Byrnes
---- --- --
prev parent reply other threads:[~2003-07-14 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-14 17:35 Phil!Gregory
2003-07-14 17:57 ` Michał Politowski
2003-07-14 19:25 ` Bart Schaefer
2003-07-14 19:51 ` Phil!Gregory [this message]
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=20030714195102.GA9287@mithrandir.aperiodic.net \
--to=phil_g@pobox.com \
--cc=zsh-users@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).