This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: echo and CYGWIN variable


On Wed, 21 May 2003, Igor Pechtchanski wrote:
> Whenever you redirect to a file, the mount table is consulted, and the
> appropriate mode is selected (i.e., CYGWIN has no effect).  If you use
> Win32 paths, there are no entries in the mount table, so I'm not quite
> sure what's going on.
Correct me if I'm wrong (please), but I thought this worked like this:
1) d:/foo -> /cygdrive/d/foo
2) look in mount table
the mount type (bin or text) is whatever the parent of /cygdrive/d/foo is, 
which is /cygdrive/d -> /cygdrive -> /
if / is binmode, (and there's nothing between /cygdrive/d/foo and / in the 
mount table), /cygdrive/d/foo is binmode.

But please, enlighten me if this is not how it works :)


> You could try using backslashes instead of forward slashes (I think
> those force textmode),
If so, where does this:
d:\\foo -> d:/foo -> /cygdrive/d/foo
break?

rlc



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]