delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/09/10:57:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 9 May 2005 10:57:16 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: DD converts LF -> CR / LF
Message-ID: <20050509145716.GL15665@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <427B1A65 DOT 5060106 AT tu-bs DOT de> <427B258F DOT 90516ACA AT dessent DOT net> <427B70CB DOT 7040101 AT byu DOT net> <87oebo1bfa DOT fsf AT penguin DOT cs DOT ucla DOT edu> <427CDB49 DOT 8030804 AT byu DOT net> <87y8ap92wp DOT fsf AT penguin DOT cs DOT ucla DOT edu> <20050508230338 DOT GB3896 AT trixie DOT casa DOT cgf DOT cx> <427F5D0D DOT 5030206 AT byu DOT net>
Mime-Version: 1.0
In-Reply-To: <427F5D0D.5030206@byu.net>
User-Agent: Mutt/1.5.8i

On Mon, May 09, 2005 at 06:52:29AM -0600, Eric Blake wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>According to Christopher Faylor on 5/8/2005 5:03 PM:
>>>Hmm, overriding the explicit advice of the system administrator?  How
>>>common is it for file systems to be mounted in text mode?  Why would
>>>anyone do such a thing?  If it's sufficiently rare, then dd shouldn't
>>>need to worry about it.
>> 
>> It is not rare but, regardless, this email was the result of someone who
>> was surprised by the fact that dd converted LF -> CRLF.  Whether it is
>> common or not, I don't think it makes sense to surprise people who use
>> dd when it is trivial to make it work in a more UNIX-like fashion (i.e.,
>> do not convert LF -> CRLF).
>
>The cygwin installer is being changed to more explicitly warn users that
>text-mode mounts are usually a bad idea.  The problem is that the cygwin
>system administrator is often the primary user, and is often naive about
>the issues between text vs binary mounts (especially at the point in time
>when they ran the installer).
>
>However, Paul's arguments are starting to convince me (if only because
>then I have fewer downstream patches to maintain) - respecting the
>underlying mount point unless told otherwise can also be considered a
>sensible behavior, and is adopted by several other utilities in coreutils.

As one of the project leads, I am formally asking you to make dd default
to binary behavior.  This whole thread was kicked off by someone who was
suprised by the current behavior.  I don't think there is any reason to
force people to read the man page in order to get the behavior that
they're used to on UNIX.  If you want to make it to text mode when the
dd arguments clearly indicate that you're manipulating text, then that
would be great.  Otherwise, the current and proposed behavior will just
annoy me and prevent me from writing portable scripts.  I use text mode
mounts myself and I do not desire this behavior.

So far, that seems to be two for two desiring binmode.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019