delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/18/21:14:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_45,RCVD_IN_SORBS_WEB,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <COL102-W26B47E305E9C7DEB1712CDB55B0@phx.gbl>
From: Karl M <karlm30 AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Cygwin 1.7.0 2009-05-18 snapshot text mounts
Date: Mon, 18 May 2009 18:14:40 -0700
In-Reply-To: <20090519004447.GD8860@ednor.casa.cgf.cx>
References: <COL102-W185621C462C536BD964A81B55A0 AT phx DOT gbl> <20090519000410 DOT GA8860 AT ednor DOT casa DOT cgf DOT cx> <COL102-W4027C5CF5D46912A2E5E11B55B0 AT phx DOT gbl> <20090519003309 DOT GC8860 AT ednor DOT casa DOT cgf DOT cx> <20090519004447 DOT GD8860 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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, 18 May 2009 20:44:47 -0400
> From: cgf
> Subject: Re: Cygwin 1.7.0 2009-05-18 snapshot text mounts
>
> On Mon, May 18, 2009 at 08:33:09PM -0400, Christopher Faylor wrote:
>>On Mon, May 18, 2009 at 05:23:31PM -0700, Karl M wrote:
>>>
>>>> Date: Mon, 18 May 2009 20:04:10 -0400
>>>> From: cgf
>>>> Subject: Re: Cygwin 1.7.0 2009-05-18 snapshot text mounts
>>>>
>>>> On Mon, May 18, 2009 at 04:21:49PM -0700, Karl M wrote:
>>>>>
>>>>>Hi All...
>>>>>
>>>>>I am using the Cygwin-1.7.0 2009-05-18 snapshot on a Vista Business SP=
1 box.
>>>>>
>>>>>The following is my fstab contents
>>>>>
>>>>>none / cygdrive text,noacl,posix=3D0 0 0
>>>>>
>>>>>If I create a file with
>>>>>
>>>>>cat some-file> /c/Users/me/Desktop/file.txt
>>>>>
>>>>>I get Unix line endings. If I use Cywgin vim to create
>>>>>
>>>>>/c/Users/me/Desktop/zzz.txt
>>>>>
>>>>>I also get unix line endings.
>>>>>
>>>>>A cygcheck is attached.
>>>>
>>>> Please go back and read Corinna's release announcement and pay
>>>> particular attention to the discussion about the root directory.
>>>>
>>>> http://cygwin.com/ml/cygwin-announce/2009-05/msg00017.html
>>>>
>>>OK I reread...I'm not sure what you wanted me to see. I am creating a cy=
gdrive entry in my fstab and it is being accepted, it just doesn't seem to =
honor the text attribute.
>>
>>I guess I was assuming that since you're essentially conflating / with
>>cygdrive you might have to either mount / as text and override it or use
>>the override option for the cygdrive entry too but, on reflection, that
>>shouldn't be the case.
>>
>>You're combining my two of my least favorite things: text mode and
>>overriding /cygdrive with / but I'll take a look nonetheless.
>
> I did find a bug in the recent handling of root but it doesn't appear
> to have any effect on this behavior.
>
> If I use echo to create files in /c with a /etc/fstab similar to the
> above, I get \r\n line endings. I'm sure Eric will correct me but I
> don't believe that cat can be used to convert from binary to text. vim
> also has a mode to create dos line endings.
>
I can confirm that the echo test produces dos line endings.

I thought cat would work, because the data is written to a new file.

I now see that vim is configured to default to unix endings in Cygwin, and =
dos endings in the native windows port.

Thanks,

Also, thanks for the fast turnaround with the snapshot last night.

...Karl



_________________________________________________________________
Hotmail=AE goes with you.=20
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=3DTXT_TAGLM_WL_HM_Tutor=
ial_Mobile1_052009

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