delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/01/03:55:50

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
Message-Id: <6.1.2.0.0.20040901091733.01b7e768@172.16.0.2>
X-Sender: arnaud DOT mouiche AT 172 DOT 16 DOT 0 DOT 2
Date: Wed, 01 Sep 2004 09:48:17 +0200
To: Cygwin List <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
From: Arnaud Mouiche <arnaud DOT mouiche AT inventel DOT fr>
Subject: Re: c:/ seems to be accessed in binary even if cygwin is configured as textmode by default
In-Reply-To: <6.1.0.6.0.20040831135114.033e8c58@pop.prospeed.net>
References: <6 DOT 1 DOT 2 DOT 0 DOT 0 DOT 20040831193832 DOT 01cc4f70 AT 172 DOT 16 DOT 0 DOT 2> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040831135114 DOT 033e8c58 AT pop DOT prospeed DOT net>
Mime-Version: 1.0
X-IsSubscribed: yes

At 19:55 31/08/2004, Larry Hall wrote:
>At 01:38 PM 8/31/2004, you wrote:
> >Hi.
> >
> >just make a fresh update (from a long time). I mount my system in 
> textmode by default.
> >yet,
> >
> >c:/file seems to be accessed in binary mode
> >/cygdrive/c/file is accessed in text mode
> >
> >Is it the new default behaviour ? Is there a configuration that I missed ?
> >
> >thanks
> >
> >Arnaud
> >
> >....
> >
> >here a simple proof
> >
> >$ cygcheck -c | grep cygwin
> >cygwin               1.5.10-3           OK
> >cygwin-doc           1.3-7              OK
> >$ mount
> >C:\cygwin\bin on /usr/bin type system (textmode)
> >C:\cygwin\lib on /usr/lib type system (textmode)
> >C:\cygwin on / type system (textmode)
> >c: on /cygdrive/c type user (textmode,noumount)
> >d: on /cygdrive/d type user (textmode,noumount)
> >w: on /cygdrive/w type user (textmode,noumount)
>
>
>
>If you're using a Windows path, you bypass mounts.  Mounts map POSIX paths
>to Windows, not the reverse.


I agree with you, but it worked with old version of cygwin.
Get the possibility to tune binmode/textmode of Window path for cygwin 
application looks like important to me.


The greet things with cygwin is to mix windows and unix world. I don't know 
the history of cygwin, but I may suppose that the option "mount -t" was 
here to get this compatibility between unix and windows.
Most of the time I use the cygwin make, sed, grep, diff, cvs in combination 
with  (only) windows development tools ( especially armcc ). I use "cygpath 
-m" to get compatible path for both environment. I can't use it now.

issue #1:
I start to look at this problem when tkcvs was not able any more to perform 
a diff between 2 version.  tkdiff, copy the cvs HEAD release of a version 
in temporary directory, then call the cygwin 'diff' to perform the 
comparaison. diff compare the local file (text mode) with the one in temp 
directory (c:/tmp/xxxx, so in binmode)

issue #2:
even whith cygwin "tclsh"  version,
    glob /*
returns
    C:/cygwin/bin C:/cygwin/cygwin.bat C:/cygwin/cygwin.ico ....

issue #3:
Another example: the 2 following lines don't gives the same result
     cd c:/ && grep XXXX file
     grep XXXX c:/file


arnaud 


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