X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="UTF-8"
Subject: How do I prevent zsh from opening pipes and read redirections in text mode?
Date: Thu, 4 Dec 2008 09:40:35 +0100
Message-ID: <3E4278088AD82C48B4663DDFE762CEF305A2DDED@prga004a.ww300.siemens.net>
From: "Hudec, Jan" <jan.hudec@siemens.com>
To: <cygwin@cygwin.com>
X-purgate:  clean
X-purgate:  This mail is considered clean
X-purgate-type:  clean
X-purgate-Ad:  Checked for Spam by eleven - eXpurgate www.eXpurgate.net
X-purgate-ID:  149917::081204094037-0B9D8BA0-54EDF9EE/0-0/0-15
X-purgate-size:  802/0
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id mB48fSfk014205

Hello Folks,

I have a program (actually a cygwin program -- git-fast-import) that reads commands from standard input and absolutely needs the stream to be binary (byte counts to be read are included in some commands). However, zsh forces it's input to text mode both when I run:
 git-fast-import < file
and
 cat file | git-fast-import
despite me having all the mounts set to binary and CYGWIN=binary. How do I explain to zsh, that pipes and read redirections to commands must be binary?

Note, that zsh used not to do this and bash is not doing it either.

-- 
Jan Hudec

