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

Re: [BUG] builtin echo doesn't check write error



2021-06-09 16:40:50 +0100, Stephane Chazelas:
[...]
> A04redirect.ztst still has:
> 
>   print foo >&-
> 0:'>&-' redirection
[...]


That particular one has been there since that test framework was
added: https://www.zsh.org/mla/workers/1999/msg04158.html

>   (exec >&-
>   print foo)
> 0:'>&-' with attempt to use closed fd
> *?\(eval\):2: write error:*
[...]

But there has been some variations as to whether and what error
messages were displayed over the years.

See also:

https://www.zsh.org/mla/workers/2011/msg01272.html

-- 
Stephane




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