Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cat file|while read behaves not as expected
- X-seq: zsh-users 5351
- From: Micha Holzmann <holzmann@xxxxxxxx>
- To: Paul Lew <paullew@xxxxxxxxx>
- Subject: Re: cat file|while read behaves not as expected
- Date: Mon, 16 Sep 2002 09:45:04 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <15749.32672.519001.745519@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020916063254.GA8555@xxxxxxxxxxxxxxxxxxxx> <15749.32672.519001.745519@xxxxxxxxxxxxxxxxxxxxxxx>
Hello Paul,
Quoting Paul Lew <paullew@xxxxxxxxx>:
> if you say:
>
> for i in $=line
>
> it will do what you want. Basically, the variable i will contain the
> "1 2 3 4 5", unless you told it to split word, the entire entry is
> will be used on variable expansion. This is what zsh does it
> correctly compare to other shells, but also a problem with
> compatibility :-)
so many thanks! Now my script runs how i expect it.
Also thanks to David Hughes!
Kind regards,
Gruss,
Micha Holzmann
--
My software never has bugs. It just develops random features.
Attachment:
pgpUy2vb8uBEv.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author