Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [doc] $ERRNO broken
- X-seq: zsh-workers 39636
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [doc] $ERRNO broken
- Date: Fri, 14 Oct 2016 17:04:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zj4LNWq23d5SwDj1EMDtOMOT0UG3grqr0CX/qcft/J8=; b=VnHjsDOjtLdvG4iSSIJHyQMhjOOyh31pS/u9NfWMF8Z7LpeUFuUxI0VL+LvbPYnc1r 8sWCAtjHX0VtNOgL1yUPsZgUFbnyhLslvAPbFDcSr4M2A/EmIbTiNltTLhR75pvjLyaw cGqTVFY+frwBVgv0AlDxEmz5AtQ+oOI17LYM8uNCHxEjRF3jBGtmwy/VJ65wy6GvOWki W5z66rKawUKeOv1HaEyycAp72XY6LDhWP+oVxqKJDd53On8Rnpi/wMTWxCiPJRlC5fFT aVP5gTfUy5Jodl19SWcogDveMiVfLgVkDU8Ny/cyyrALDqEpPEPsNbuz9fU+wzqw2y4N zqdA==
- In-reply-to: <20161014155603.GA17198@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161014155603.GA17198@chaz.gmail.com>
2016-10-14 16:56:03 +0100, Stephane Chazelas:
> Probably unrelated to the $errnos issue raised recently. It
> looks like $ERRNO no longer works, at least on Debian Linux
> unstable amd64 with today's git code built with gcc 6.1 or gcc
> 4.4 or the zsh-5.2-5 Debian package.
>
> Same on ubuntu 16.04 (5.1.1). It was fine in Ubuntu 14.04
> (5.0.2).
>
> $ zsh -c '/; echo $ERRNO'
> zsh:1: permission denied: /
>
> $ zsh -c 'typeset -p ERRNO
> $
[...]
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.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author