From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18723 invoked by alias); 13 Feb 2015 04:21:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19865 Received: (qmail 3786 invoked from network); 13 Feb 2015 04:21:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=I4zSn2kl c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=0HtSIViG9nkA:10 a=yKwRgPl27E7NJ6GLLn4A:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150212202115.ZM1331@torch.brasslantern.com> Date: Thu, 12 Feb 2015 20:21:15 -0800 In-reply-to: <20150212101657.GA23465@xvii.vinc17.org> Comments: In reply to Vincent Lefevre "Re: multi-digit file descriptors" (Feb 12, 11:16am) References: <20150212101657.GA23465@xvii.vinc17.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: multi-digit file descriptors MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 12, 11:16am, Vincent Lefevre wrote: } Subject: Re: multi-digit file descriptors } } On 2015-02-11 09:27:51 -0800, Bart Schaefer wrote: } > Zsh reserves descriptors 10 and up for internal use; for example, 10 is } > nearly always a copy of the original input terminal in an interactive shell. } } But this doesn't explain the error message, in particular... } } ( echo foo >&09; ) 09>my_file } } still gives an error: } } redir:4: parse error near `09' "09>my_file" is parsed as "09" ">" "my_file", because zsh doesn't support multi-digit descriptors on the left side of a redirect. So what you have is the same as { ( echo foo >&09 ) 09 } > my_file Which is a parse error because you can't follow a subshell with an argument list. Zsh does support multi-digit descriptors on the right side, so >&09 is all one token (and is the same as >&9 in this case).