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

Re: [doc] $ERRNO broken



On Fri, 14 Oct 2016 17:04:59 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> Actually, it's fine when you *set* it beforehand, and you would
> generally want to set it beforehand as in:
> 
> zsh -c 'ERRNO=0; /; echo $ERRNO'
> 
> or otherwise you wouldn't know what system call the $ERRNO you'd
> get is from.
> 
> So it's just a documentation issue: the doc should say that
> ERRNO should be set (declaring it is not enough) before use.

This is 32377 / f3e7cfe4, which described itself as a "first go", so
there may be more to come.  It touched various variables.

pws



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