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

Re: Use of zerr() vs. zwarn()



Bart Schaefer wrote:

> Welcome back, Sven!  Hope you had a good holiday.

Yes, thanks.

> On Oct 4, 11:30am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> } 
> } > On Sep 29,  4:58pm, Bart Schaefer wrote:
> } > }
> } > } init.c:1122:    zwarnnam(name, "option valid only in functions called from completion",
> } > }   Should these use zerrnam(), as do completion-only conditions within
> } > }   [[ ... ]] ?
> } > 
> } > Judging from the indentation on the line following the call to zwarnnam(),
> } > I suspect that this originally *was* a call to zerrnam() and was changed
> } 
> } Yes, please. I changed that in 10131.
> 
> ...??  Not Src/init.c, you didn't.

Sorry, I was confused by the `... from completion'.

> } The discussion leading up to it is in 10120, 10122 and before. We had
> } problems with builtins stopping loops (or not) because of errflag.
> 
> Yes, exactly; that's the same sort of thing I was trying to address with
> the other zerr --> zwarn changes.
> 
> However, "... only in functions called from completion ..." is not an
> error that can possibly occur in any case where a loop *ought* to
> continue, is it?

Right.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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