Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multi-digit file descriptors
- X-seq: zsh-users 19860
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: multi-digit file descriptors
- Date: Wed, 11 Feb 2015 20:47:09 +0000
- 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-type:content-disposition:in-reply-to :user-agent; bh=gQQRyAOGueNuZR5QVaQKDbqJzsyD8DOgk83I1U7gvOA=; b=wfJNowDbsfcgAWs7b2W8mYjids9+9654IUq2PyKw5ITqf09LQVSHdMQ7NpEFHeV1M3 0cvHTiy0fTM4kQbxMxxYgqyZbEHwTUGbFL3T0hD2Dyb1nks5juQwsLcG4SxQfLrrkixq whzrCggqB+aDxFIRSln7h4f7W4rbZbvM6ZsmehksYoSaBgyJNrGu6PDnQ2k14M4QDsmO yhXugLJ+9JlTCtKYUNlXASVcgCJsS/i2Hl2ASu39vQ0ht5xmQLb3EQFALTlUEGNq1L1s RuN1NiSlb2aVT+ClruBWpiq/b0q9ibAsurRCErKzBJpVTV2f8NbRDy4wtJlqz+2r5zeD BqaA==
- In-reply-to: <20150211162637.GA9083__22180.4416658872$1423672129$gmane$org@xvii.vinc17.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20150211162637.GA9083__22180.4416658872$1423672129$gmane$org@xvii.vinc17.org>
2015-02-11 17:26:37 +0100, Vincent Lefevre:
> Contrary to bash and mksh, zsh doesn't support file descriptors with
> multiple digits. Considered the following file "redir".
>
> ----------------------------------------
> ( echo foo >&9; ) 9>my_file
> cat my_file
>
> ( echo bar >&10; ) 10>my_file
> cat my_file
> ----------------------------------------
>
> xvii% bash redir
> foo
> bar
> xvii% mksh redir
> foo
> bar
> xvii% zsh redir
> foo
> redir:4: parse error near `10'
>
> The behavior of dash and ksh93 is similar to zsh. But is there any
> reason?
>
> BTW, POSIX doesn't seem to restrict file descriptors to 1 digit.
[...]
Related discussion on the austin-group mailing list:
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/10094
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author