Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh exits after delete-char-or-list and two ^Cs
- X-seq: zsh-workers 20315
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: zsh exits after delete-char-or-list and two ^Cs
- Date: Fri, 3 Sep 2004 11:59:49 -0700 (PDT)
- In-reply-to: <200409030937.i839bJxR018972@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200409020919.i829J0eC012233@xxxxxxxxxxxxxx> <Pine.LNX.4.61.0409020755430.18377@xxxxxxxxxxxxxxxxxx> <200409030937.i839bJxR018972@xxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Fri, 3 Sep 2004, Peter Stephenson wrote:
> (Oliver says the In-reply-to and References format should work better
> like this. Tell me if it doesn't.)
(Looks fine. What are you using as a mail reader?)
> Bart Schaefer wrote:
> > zle && echo "widgets callable" # I'm least certain of this
> > zle -I && echo "Display invalidated and widgets callable"
> > zle -R && echo "Display refreshed and zle active"
> >
> > Is that right?
>
> Yes, noting that testing for `display invalidated' and `display
> refreshed' doesn't form part of the return status (I think that's what
> you mean but it's not clear from the output).
Hmm. OK, that's not so good, because it breaks "zle -I || ..." in the
case where you want to know whether the display was NOT invalidated.
(Maybe there's never a reason to care about that, but ...)
> I agree, it's just a question of how much of a stickler you are for
> having the return status reflecting `command did what I expected' rather
> than `command did something and tested for something else'.
I'm quite willing to have "zle -I" go back to testing for "invalidating
the display was a sensible thing to attempt" provided that "zle" (no args)
tests for "widgets callable", and that all of this is documented more
clearly.
> I want to emphasis calling zle -I multiple times has no bad effect.
> Maybe the English for that is "calling zle -I multiple times has no bad
> effects".
Yeah.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author