From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 728 invoked from network); 16 Sep 2002 07:45:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Sep 2002 07:45:21 -0000 Received: (qmail 22480 invoked by alias); 16 Sep 2002 07:45:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5351 Received: (qmail 22466 invoked from network); 16 Sep 2002 07:45:06 -0000 Date: Mon, 16 Sep 2002 09:45:04 +0200 From: Micha Holzmann To: Paul Lew Cc: zsh-users@sunsite.dk Subject: Re: cat file|while read behaves not as expected Message-ID: <20020916074504.GA9060@idm-06.pf.kramski.de> References: <20020916063254.GA8555@idm-06.pf.kramski.de> <15749.32672.519001.745519@paullew-ultra.cisco.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <15749.32672.519001.745519@paullew-ultra.cisco.com> User-Agent: Mutt/1.4i X-PGP-KeyID: 0x0EBA820F X-Request-PGP: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x0EBA820F X-Operating-System: GNU/Linux 2.4.18-4 X-Phone: +49 7231 970710 X-Fax: +49 7231 970711 X-SMS: +49 170 6180181 X-AntiVirus: OK! AntiVir MailGate Version 2.0.0.9; AVE: 6.15.0.0; VDF: 6.15.0.5 at mail-idm.mhnet.de has not found any known virus in this email. --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Paul, Quoting Paul Lew : > if you say: >=20 > for i in $=3Dline >=20 > 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 --=20 My software never has bugs. It just develops random features. --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9hYwAZrmPvQ66gg8RAgx8AJ9LlUUQBYAosNBXkzhKflN3GCkAowCgkqEN dPb/n9P0j9N0O4grGTaxYos= =MA4R -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--