delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/24/04:21:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [163.166.150.22]
From: "J S" <vervoom AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: stop cygwin sed adding ^M
Date: Thu, 24 Jan 2002 09:20:43 +0000
Mime-Version: 1.0
Message-ID: <LAW2-F37nh5o35VsJp9000067fe@hotmail.com>
X-OriginalArrivalTime: 24 Jan 2002 09:20:43.0959 (UTC) FILETIME=[66417C70:01C1A4B8]

OK I think I know why I had this problem now. You're saying if my drive is 
mounted in text mode then sed will insert ^M at the end of lines.
This won't happen though if the drive is mounted in bin mode. Right?

In that case I have one more question. When I start cygwin as an 
administrator, my c drive is mounted as:

c: on /cygdrive/c type user (binmode,noumount)

but if I'm logged on as a local user, it's mounted in text mode.
How can I change this as a local user to be mounted in binary?

Thanks,

JS.

>From: Christopher Faylor <cgf AT redhat DOT com>
>Reply-To: cygwin AT cygwin DOT com
>To: cygwin AT cygwin DOT com
>Subject: Re: stop cygwin sed adding ^M
>Date: Wed, 23 Jan 2002 13:26:31 -0500
>MIME-Version: 1.0
>Received: from [209.249.29.67] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE184B9300114136E853D1F91D430BCD0; Wed, 23 Jan 2002 10:27:31 -0800
>Received: (qmail 2849 invoked by alias); 23 Jan 2002 18:26:35 -0000
>Received: (qmail 2783 invoked from network); 23 Jan 2002 18:26:34 -0000
>Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154)  by 
>sources.redhat.com with SMTP; 23 Jan 2002 18:26:34 -0000
>Received: from cgf.cipe.redhat.com (dhcpd247.meridian.redhat.com 
>[172.16.47.247])by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id 
>g0NIQY319737for <cygwin AT cygwin DOT com>; Wed, 23 Jan 2002 13:26:34 -0500
>Received: (from cgf AT localhost)by cgf.cipe.redhat.com (8.11.6/8.8.7) id 
>g0NIQVw17956for cygwin AT cygwin DOT com; Wed, 23 Jan 2002 13:26:31 -0500
>From cygwin-return-43764-vervoom Wed, 23 Jan 2002 10:29:22 -0800
>Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
><mailto:cygwin-unsubscribe-vervoom=hotmail DOT com AT cygwin DOT com>
>List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
>List-Archive: <http://sources.redhat.com/ml/cygwin/>
>List-Post: <mailto:cygwin AT cygwin DOT com>
>List-Help: <mailto:cygwin-help AT cygwin DOT com>, 
><http://sources.redhat.com/ml/#faqs>
>Sender: cygwin-owner AT cygwin DOT com
>Delivered-To: mailing list cygwin AT cygwin DOT com
>Message-ID: <20020123182631 DOT GA16029 AT redhat DOT com>
>Mail-Followup-To: cygwin AT cygwin DOT com
>References: <C2D7D58DBFE9D111B0480060086E96350689BB99 AT mail_server DOT gft DOT com> 
><20020123175442 DOT GJ6765 AT redhat DOT com> 
><20020123191418 DOT F11608 AT cygbert DOT vinschen DOT de>
>In-Reply-To: <20020123191418 DOT F11608 AT cygbert DOT vinschen DOT de>
>User-Agent: Mutt/1.3.23.1i
>
>On Wed, Jan 23, 2002 at 07:14:18PM +0100, Corinna Vinschen wrote:
> >On Wed, Jan 23, 2002 at 12:54:42PM -0500, Chris Faylor wrote:
> >> On Wed, Jan 23, 2002 at 03:58:57PM +0100, Schaible, Jorg wrote:
> >> >May be you should read the FAQ regarding text mounts ??
> >>
> >> sed is a fully ported utility.  It is supposed to read CRLF text on
> >> standard input and produce only UNIX-style newline endings on standard
> >> output.
> >
> >There's one situation I know that it actually converts LF to CRLF.
> >
> >Say, you have a file foo:
> >
> >$ od -c foo
> >0000000   h   a   l   l   o  \n
> >0000006
> >
> >and your currently in a textmode mounted directory, then
> >
> >$ sed -e 's/ll/nn/' foo > bar
> >
> >creates actually a CRLF file bar:
> >
> >$ od -c bar
> >0000000   h   a   n   n   o  \r  \n
> >0000007
> >
> >and that's defined behaviour.  That isn't even going on in sed.
> >The stdio redirection has already happened in the shell and sed
> >is just using that file descriptor.
>
>I stand corrected.
>
>Sorry for the misinformation.
>
>cgf
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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