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

Re: broken pipe with prompt -h



Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx) wrote:
> On Jun 29, 12:34pm, Adam Spiers wrote:
> } Subject: broken pipe with prompt -h
> }
> }   $ prompt -h adam2 | grep -q plain
> }   set_prompt:52: write error: broken pipe
> }   set_prompt:53: write error: broken pipe
> 
> This is a result of the changes in zsh-workers/16503 to cause bin_print()
> to report write errors.  There was a follow-on patch in 16556 to suppress
> the errors when stdout is closed.  EPIPE might be another error worthy of
> suppression.

Ahah.

> } Can anyone please tell me the correct fix?
> 
> Other than redirecting stderr, I don't think there is one.  It'd be the
> right idea to do	trap 'ERRNO=0' PIPE	but ERRNO is read-only.

I just upgraded from RedHat 7.3's rpm of 4.0.4 to 4.1.0-dev-5 and the
warning's gone.  Was that supposed to happen?



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