Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
{fd}< and compound commands
- X-seq: zsh-users 16350
- From: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: {fd}< and compound commands
- Date: Wed, 14 Sep 2011 18:21:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1316020910; bh=m7xhtMlOB7n35RknYLr0nzqXjiz97k8vzK+OgKJIaTs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent; b=IR4zROah8sq0SxxMqwuipiCARKRmEwT48ksW7Wz2d9w7m6kZCFtyD6UZpkKKi/LNUpfFS6Bl2aumFMgJGMDhRBoIR2nzK4vm4nr382+eZTUo6O49e6NnhRTwsgzxckzAGPKRY6FWxATpQ6uPVn3TTWxJHiPwN8eSE9IcRRd32HY=
- 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
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.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author