zsh 4.3.9-1: text-mode stdin problem (breaking base64)

Eric Blake eblake@redhat.com
Mon Apr 26 13:58:00 GMT 2010


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.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100426/fa1353cc/attachment.sig>


More information about the Cygwin mailing list