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

Re: PRINT_EXIT_VALUE problems



On 2011-12-28 11:26:01 -0500, Nathan Dorfman wrote:
> Unrelated to the apparent bug you've described, I've been using a
> different mechanism to achieve the effect that (I think) you want. $?
> does the right thing:
> 
> % false || true ; echo $?
> 0
> % false && true ; echo $?
> 1
> 
> You can use the %? sequence in your prompt to see the exit value;

I already do this. But PRINT_EXIT_VALUE provides more information.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author