How do I prevent zsh from opening pipes and read redirections in text mode?

Eric Blake ebb9@byu.net
Thu Dec 4 13:02:00 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Hudec, Jan on 12/4/2008 1:40 AM:
> 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

I suppose I could try submitting a patch to the git folks that uses
#include <io.h> and setmode.  But this also sounds like zsh might be doing
something wrong.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
volunteer cygwin git maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk31GYACgkQ84KuGfSFAYCZMQCeKNf8hJe0zL/6UIxuwv3uQXVf
Q1MAoNbFS81yX3XTeoRfCVMPsv5Z/LaI
=mDvQ
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list