Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read stdin in variable howto ?
- X-seq: zsh-users 9866
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: Marcus Fritzsch <fritschy@xxxxxxxxxxxxxx>, zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: read stdin in variable howto ?
- Date: Tue, 31 Jan 2006 11:11:41 +0100
- In-reply-to: <ef88cc6b0601310206w26e9a277o5ad42bda342c795a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060131092813.GA20363@xxxxxxxxxxxxxxxxxxxxxxx> <ef88cc6b0601310206w26e9a277o5ad42bda342c795a@xxxxxxxxxxxxxx>
> What about using the following:
> ,-----
> | while :; do read line; test -n "$line" || break; echo $line; done
> `-----
for the moment, i use :
typeset stdin
read -d\\0 stdin
logins=( ${(f)stdin})
but it's not as elegant as a ${(f)"$(<)"} would be.
thanks for help
mc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author