Mail Archives: cygwin/2009/05/18/21:14:59
> 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 -