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 8822
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "krasnal" <krasnal@xxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Little problem while converting from bash (quoting/splitting?)
- Date: Thu, 12 May 2005 16:29:11 +0000
- In-reply-to: <20050512060921.M13778@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050512060921.M13778@xxxxxx>
On May 12, 9:28am, krasnal wrote:
}
} This is with 4.2.4 cygwin version of zsh and 2.05b.0(1)-release of bash.
} cleartool is windows program producing \r\n line terminated output. Note
} that zsh has both \r and \n in f variable while bash has only \n.
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.
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 ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author