zsh-users
 help / color / mirror / code / Atom feed
From: Marc Chantreux <marc.chantreux@ulpmm.u-strasbg.fr>
To: Marcus Fritzsch <fritschy@googlemail.com>,
	zsh-users <zsh-users@sunsite.dk>
Subject: Re: read stdin in variable howto ?
Date: Tue, 31 Jan 2006 11:11:41 +0100	[thread overview]
Message-ID: <20060131101141.GA20582@xpeerience.u-strasbg.fr> (raw)
In-Reply-To: <ef88cc6b0601310206w26e9a277o5ad42bda342c795a@mail.gmail.com>

> 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


  parent reply	other threads:[~2006-01-31 10:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-31  9:28 Marc Chantreux
     [not found] ` <ef88cc6b0601310206w26e9a277o5ad42bda342c795a@mail.gmail.com>
2006-01-31 10:11   ` Marc Chantreux [this message]
2006-01-31 10:36 ` Artur Penttinen
2006-01-31 11:09   ` Marc Chantreux
2006-01-31 12:07 ` Vincent Lefevre
2006-01-31 12:09   ` Vincent Lefevre
2006-01-31 13:45     ` Marc Chantreux
2006-01-31 14:51       ` Stephane Chazelas
2006-01-31 21:10         ` Marc Chantreux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060131101141.GA20582@xpeerience.u-strasbg.fr \
    --to=marc.chantreux@ulpmm.u-strasbg.fr \
    --cc=fritschy@googlemail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).