Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Little problem while converting from bash (quoting/splitting?)
- X-seq: zsh-users 8830
- From: "krasnal" <krasnal@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Little problem while converting from bash (quoting/splitting?)
- Date: Sun, 15 May 2005 16:48:37 +0300
- In-reply-to: <1050512162911.ZM17235@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050512060921.M13778@xxxxxx> <1050512162911.ZM17235@xxxxxxxxxxxxxxxxxxxxxxx>
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author