bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cat bug on cygwin


From: Paul Eggert
Subject: Re: cat bug on cygwin
Date: Wed, 30 May 2007 15:46:49 -0700
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

> I'm wondering how many of the other coreutils that use this freopen trick are 
> affected,

Five more: head, tac, tail, tee, and tr.

> and whether we should use a wrapper function rather than duplicating 
> all the logic.

My kneejerk reaction is to duplicate the logic.

Most likely we'll run into further problems like this, no?  E.g.,
suppose stdout is open for both read and write, and we use "wb" on it?
Won't we screw it up?

(What a hassle.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]