From: Bart Schaefer <schaefer@brasslantern.com>
To: "krasnal" <krasnal@2-0.pl>, zsh-users@sunsite.dk
Subject: Re: Little problem while converting from bash (quoting/splitting?)
Date: Thu, 12 May 2005 16:29:11 +0000 [thread overview]
Message-ID: <1050512162911.ZM17235@candle.brasslantern.com> (raw)
In-Reply-To: <20050512060921.M13778@2-0.pl>
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 ...
next prev parent reply other threads:[~2005-05-12 16:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 6:28 krasnal
[not found] ` <krasnal@2-0.pl>
2005-05-12 9:39 ` Peter Stephenson
2005-05-15 13:35 ` krasnal
2005-05-12 16:29 ` Bart Schaefer [this message]
2005-05-15 13:48 ` krasnal
2005-05-15 18:48 ` Bart Schaefer
2005-05-19 13:17 ` krasnal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1050512162911.ZM17235@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=krasnal@2-0.pl \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).