Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: reinventing print_exit_value



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