Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Sat, 7 May 2005 11:47:35 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: DD converts LF -> CR / LF
Message-ID: <20050507154735.GG11243@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <427B1A65.5060106@tu-bs.de> <427B258F.90516ACA@dessent.net> <427B70CB.7040101@byu.net> <87oebo1bfa.fsf@penguin.cs.ucla.edu> <427CDB49.8030804@byu.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <427CDB49.8030804@byu.net>
User-Agent: Mutt/1.5.8i

On Sat, May 07, 2005 at 09:14:17AM -0600, Eric Blake wrote:
>According to Paul Eggert on 5/6/2005 12:01 PM:
>> That looks pretty complicated.  How about if we just rely on "open"
>> and "fcntl" to do the work?  If they don't work, they should.
>> 
>> I installed this into coreutils:
>> 
>> 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
>> 
>> 	* NEWS: dd has new iflag= and oflag= flags "binary" and "text".
>> 	* doc/coreutils.texi (dd invocation): Document it.
>> 	* src/dd.c (flags, usage): Support it.
>
>That's okay for a start, but it now defaults to the underlying mount mode
>when the user does not specify binary or text.  In my opinion, dd should
>default to binary when neither text nor binary is specified (of course,
>that makes iflag=binary pretty much a no-op).

So, this seems to be the consensus.  It really is the only sane way for
dd to operate.

cgf

--
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/

