Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: {fd}< and compound commands
- X-seq: zsh-users 16351
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: {fd}< and compound commands
- Date: Wed, 14 Sep 2011 19:36:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8tpeM5fP6bXCfCVBZlEEotjp14OhSW6tMJxUfDQzsME=; b=sWbf/3XCn/rA45nf5KjOTg6siNFwj8tKgp/JCR8zcji+iejYEWibda5mkbWhqsPqSF whBZrbHR2iG7+DCVbOVI8qI9pSoKeOz7SdoZk3elHuYqlujzYpJGhnnAWw6qk3w76UY6 j+6OitHm2W3qNu6ozw/oGOUN5mNg5kQYLF0QE=
- In-reply-to: <20110914172148.GA7325@yahoo.fr>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20110914172148.GA7325@yahoo.fr>
On 14 September 2011 19:21, Stephane Chazelas
<stephane_chazelas@xxxxxxxx> wrote:
> Hiya,
>
> $ echo $ZSH_VERSION
> 4.3.12
> $ zsh -c '{echo foo >&$fd;} {fd}> a'
> zsh:1: parse error near `{'
> (same for while/do/done constructs at least)
>
> Is that the expected behavior? I can't see it being documented.
>
> That would be useful in
>
> while read <&$fd var; do
> ...
> done {fd}< file
>
> to avoid having to worry about overriding fds 3-9.
Is this related to http://www.zsh.org/mla/workers/2011/msg01090.html
(and reply from pws)?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author