Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read stdin in variable howto ?
- X-seq: zsh-users 9870
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: read stdin in variable howto ?
- Date: Tue, 31 Jan 2006 13:09:00 +0100
- In-reply-to: <20060131120744.GF23308@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060131092813.GA20363@xxxxxxxxxxxxxxxxxxxxxxx> <20060131120744.GF23308@xxxxxxxxxxxxxxxxxxx>
On 2006-01-31 13:07:44 +0100, Vincent Lefevre wrote:
> On 2006-01-31 10:28:13 +0100, Marc Chantreux wrote:
> > is there a way to use $(<) to read stdin ? it will be great for write
> > something like
> >
> > for arg ( ${(f)"$(<)"} $@ ) treat_arg $arg
>
> $(</dev/stdin) or $(</dev/fd/0)
>
> but I don't know if this is portable.
$(<&0) also works.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author