From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7559 invoked from network); 15 May 2005 13:49:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 May 2005 13:49:03 -0000 Received: (qmail 4906 invoked from network); 15 May 2005 13:48:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 May 2005 13:48:57 -0000 Received: (qmail 21955 invoked by alias); 15 May 2005 13:48:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8830 Received: (qmail 21940 invoked from network); 15 May 2005 13:48:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 May 2005 13:48:44 -0000 Received: (qmail 3530 invoked from network); 15 May 2005 13:48:44 -0000 Received: from vhost.2-0.pl (HELO mail.2-0.pl) (81.219.246.2) by a.mx.sunsite.dk with SMTP; 15 May 2005 13:48:40 -0000 Received: from 2-0.pl (vhost.2-0.pl [81.219.246.2]) by mail.2-0.pl (8.13.0/8.13.0) with ESMTP id j4FDmbM0030338 for ; Sun, 15 May 2005 15:48:37 +0200 From: "krasnal" To: zsh-users@sunsite.dk Subject: Re: Little problem while converting from bash (quoting/splitting?) Date: Sun, 15 May 2005 16:48:37 +0300 Message-Id: <20050515134623.M88380@2-0.pl> In-Reply-To: <1050512162911.ZM17235@candle.brasslantern.com> References: <20050512060921.M13778@2-0.pl> <1050512162911.ZM17235@candle.brasslantern.com> X-Mailer: Open WebMail 2.40 20040909 X-OriginatingIP: 172.20.8.188 (krasnal) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 X-Scanned-By: MIMEDefang 2.41 X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Thu, 12 May 2005 16:29:11 +0000, Bart Schaefer wrote > Bash apparently reads stdin/stdout pipes in text mode, whereas zsh > does so in binary mode. It's somewhat reasonable to assume pipes > are text in a shell context, but because zsh has so many ways to > manipulate parameters, I seem to recall a there was a conscious > decision made to use text mode as little as possible; in effect, > it's used only when reading from files. I understand the difference but I'm not sure I follow your arguments here :)). Why reading in text mode would be problematic? > Which suggests a possible workaround; I don't have a cygwin zsh > handy to try it: > > for f in $(<=(cleartool lsvob -short | head -10)); do ... Yes it helps. Thank you. Best regards Andrzej -- ____ _ ___ / | \_/ |/ _ \ Andrzej Marek Ostruszka / _ | | (_) | MPSC (Cracow) /_/ L|_|V|_|\___/ (GnuPG key ID: 0x3D9C498A)