delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4BD59C0E.3070900@redhat.com> |
Date: | Mon, 26 Apr 2010 07:58:38 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64) |
References: | <4BCEBF96 DOT 3030201 AT jade DOT plala DOT or DOT jp> <alpine DOT LNX DOT 2 DOT 00 DOT 1004231627020 DOT 4090 AT gremlin DOT fruitbat DOT org> <4BD35527 DOT 8020101 AT jade DOT plala DOT or DOT jp> |
In-Reply-To: | <4BD35527.8020101@jade.plala.or.jp> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enig78B7653FBB61B412C1D36FD2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/24/2010 02:31 PM, Yutaka Amanai wrote: >> >> Have a look at Bash code some time. I recall seeing some O_TEXT options >> being set in the various {f}open()'s that it does. There are a few of those, but I've been working at reducing them to the bare minimum, and instead controlling it via the igncr option. > I took a look at Bash code and found it sometimes opens filehandles in > text-mode, although I didn't read in detail. Anyway, Bash is also > apparently not perfect (for example, it can't read CRLF scripts on > binary-mode filesystems), That's not true. If you use the igncr shell option, then bash ignores CR and does just fine with CRLF scripts on binary-mode file systems. It's just that you have to request it; it is not default behavior, because the default is to match Linux of favoring binary-only solutions. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig78B7653FBB61B412C1D36FD2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJL1ZwRAAoJEKeha0olJ0NqzTMH/33LQ9B9mFwM3FyUqncbDwlR 23BnrQcYmuDs2lNpVQTDBlVlZS+ZGjSWZsYb83QJXteYGesGDOVvle9/jPOyBt/s UIrRrtF0DWIAliDdj1jRsNr2V2aTZgNnX4BMFc1j+CP+iTd9zwHedDILJAKOeoz8 9Ae/R1BngJ/xe4Cw1CmWrPFjH1ZU0RNAD6jwgZyyN0keCGD1jR5Qvqocs3qXRZuD w5pT8fFLY+UFx4Hpb5eyNKQbN4zd+7Dw3PTWJQ5Oe/MnSU//1u+GEJDWQX/sExFj A8QYsAy5xvtsSjO4DQzwSK8NJ+9/X3UkKcPS338I0t5ebXk1WJPkKGUaEapoOy4= =XVwZ -----END PGP SIGNATURE----- --------------enig78B7653FBB61B412C1D36FD2--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |