This is the mail archive of the
mailing list for the Cygwin project.
Re: c:/ seems to be accessed in binary even if cygwin is configured as textmode by default
- From: Arnaud Mouiche <arnaud dot mouiche at inventel dot fr>
- To: Cygwin List <cygwin at cygwin dot com>, cygwin at cygwin dot com
- Date: Wed, 01 Sep 2004 09:48:17 +0200
- Subject: Re: c:/ seems to be accessed in binary even if cygwin is configured as textmode by default
- References: <email@example.com> <firstname.lastname@example.org>
At 19:55 31/08/2004, Larry Hall wrote:
At 01:38 PM 8/31/2004, you wrote:
>just make a fresh update (from a long time). I mount my system in
textmode by default.
>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 ?
>here a simple proof
>$ cygcheck -c | grep cygwin
>cygwin 1.5.10-3 OK
>cygwin-doc 1.3-7 OK
>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.
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)
even whith cygwin "tclsh" version,
C:/cygwin/bin C:/cygwin/cygwin.bat C:/cygwin/cygwin.ico ....
Another example: the 2 following lines don't gives the same result
cd c:/ && grep XXXX file
grep XXXX c:/file
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html