delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/28/07:58:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C288E13.1090208@ivu.de>
Date: Mon, 28 Jun 2010 13:57:07 +0200
From: =?UTF-8?B?SmFuIEzDvGJiZQ==?= <jlu AT ivu DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: default text mode
References: <4C28834A DOT 9040001 AT ivu DOT de> <20100628113502 DOT GD6310 AT calimero DOT vinschen DOT de>
In-Reply-To: <20100628113502.GD6310@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Am 28.06.2010 13:35, schrieb Corinna Vinschen:
> On Jun 28 13:11, Jan Lübbe wrote:
>> Hi,
>>
>> after reading
>> http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html#ov-new1.7-file
>>
>>> Cygwin creates the mount points for /, /usr/bin, and /usr/lib automatically from it's own position on the disk. They don't have to be specified in /etc/fstab.
>>
>> I ask myself how I can force cygwin to mount /, /usr/bin, and
>> /usr/lib in text mode. Depending on which role does cygwin
>> automatically choose this decision?
>
> Role?  The automatism is to use binary mode unless /etc/fstab says
> something else.  Other than that, why would you do that at all?
> If you need textmode for something, do it under some mount point
> of your own.  There's no good reason to use textmode for the system
> directories, unless Cygwin is too fast on your machine.

Cygwin is not to fast, but if I run sed on files all Windows EOL are 
replaced with Unix EOL. That damages my version control. Of course I can 
run u2d on that files manually, but I don't want to remind that all time.

The files itself are mounted in text mode. They are under 
/cygdrive/d/Projekte/. But sed changes the EOL anyway. Because sed is 
saved in /usr/bin, which is mounted in binary mode, I thought this is 
the reason for sed doing so.

 > % mount
 > D:/Programme/cygwin/bin on /usr/bin type ntfs (binary,auto)
 > D:/Programme/cygwin/lib on /usr/lib type ntfs (binary,auto)
 > D:/Programme/cygwin on / type ntfs (binary,auto)
 > D: on /cygdrive/d type ntfs (text,posix=0,user,noumount,auto)

Also one cannot change the way of mounting /, /usr/bin, and /usr/lib in 
fstab, as you can see:

> % cat /etc/fstab
> # For a description of the file format, see the Users Guide
> # http://cygwin.com/cygwin-ug-net/using.html#mount-table
>
> none /cygdrive cygdrive text,posix=0,user 0 0

There is only the possibility to change the way of mounting /cygdrive.

Thanks for further advises.

Cheers,
Jan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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