zsh-workers
 help / color / mirror / code / Atom feed
* Re: Use of zerr() vs. zwarn()
@ 2000-10-04  9:30 Sven Wischnowsky
  2000-10-04  9:47 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Wischnowsky @ 2000-10-04  9:30 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> On Sep 29,  4:58pm, Bart Schaefer wrote:
> } Subject: Use of zerr() vs. zwarn()
> }
> } 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
> to zwarnnam() at some point in the past, but I can't find a zsh-workers
> article in the archive to confirm.  (Maybe it was in a uuencoded patch;
> it predates my first local import of 3.1.x, which I believe was 3.1.4.)
> 
> This makes me inclined to leave this whole sub-category alone, at least
> until there's been some feedback.

Yes, please. I changed that in 10131. The discussion leading up to it
is in 10120, 10122 and before. We had problems with builtins stopping
loops (or not) because of errflag.

No opinion or comments on the other things yet...


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Use of zerr() vs. zwarn()
@ 2000-10-04 11:53 Sven Wischnowsky
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Wischnowsky @ 2000-10-04 11:53 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 6+ messages in thread
* two append bugs?
@ 2000-09-27 19:46 Clint Adams
  2000-09-28  3:35 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2000-09-27 19:46 UTC (permalink / raw)
  To: zsh-workers

% chmod 0 t

% echo bla >> t || echo failed
zsh: permission denied: t

% /bin/echo bla >> t || echo failed
zsh: permission denied: t   
failed


This happens with other builtins as well.  I assume that this inconsistency
is the first bug.


Now, on an NFS read-only mount, I get:

zsh: no such file or directory: t

whereas 3.0.7 more accurately responds

zsh: read-only file system: t

which I assume to be the other bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-10-04 11:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-04  9:30 Use of zerr() vs. zwarn() Sven Wischnowsky
2000-10-04  9:47 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-10-04 11:53 Sven Wischnowsky
2000-09-27 19:46 two append bugs? Clint Adams
2000-09-28  3:35 ` Bart Schaefer
2000-09-29 16:58   ` Use of zerr() vs. zwarn() Bart Schaefer
2000-09-30 16:42     ` Bart Schaefer
2000-10-02  0:18     ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).