Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: reinventing print_exit_value
- X-seq: zsh-users 9018
- From: Nikolai Weibull <mailing-lists.zsh-users@xxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: reinventing print_exit_value
- Date: Mon, 4 Jul 2005 14:29:01 +0200
- In-reply-to: <200507040209.14406.cht@xxxxxxxxx>
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200507032356.17308.cht@xxxxxxxxx> <200507040104.41345.cht@xxxxxxxxx> <20050703233511.GC5083@xxxxxxxxxxxxxxxx> <200507040209.14406.cht@xxxxxxxxx>
Christian Taylor wrote:
> Yes, I could also achieve the desired output using a multi-lined
> prompt, but I would still have to perform the same check using the
> preexec-function that I mentioned in my original posting. (After just
> hitting enter, the exit status is not reset, and so it would be
> displayed a second time.)
OK, I missed that, sorry. Still, how much of a problem is this?
Perhaps you should just stop hitting <Enter> a bunch of times after a
non-zero exit status? ;-),
nikolai
--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author