delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/03/08:55:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3AF15526.1793E005@yahoo.com>
Date: Thu, 03 May 2001 08:55:02 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Cygwin Users <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Larry DOT Piano AT atomictangerine DOT Com
CC: cygwin AT cygwin DOT com,
"Lawrence J Piano (E-mail)" <lpiano AT atomictangerine DOT Com>
Subject: Re: Command line parsing in Cygwin 1.3.1
References: <003601c0d3ce$d07d2500$6f000a0a AT ATLONCAMB1>

Lawrence Piano wrote:
> 
> I doubt this is specific to 1.3.1, but that's what I have installed.  My
> question is about some strange behavior I'm getting when running Windows
> apps from a shell command line.  If I do any cygwin command, it finds the
> correct root (/) directory, like: ls /, gives a listing of my root dir,
> c:/cygwin.
> 
> However, if I use a Win2k program like NTEmacs or Word, and type emacs
> /testfile or (my alias) word /testfile, they look for or create a file on
> the root dir of whatever disk, c:, d:, I'm on.  If I type: cd / and then do
> emacs or word, I get the same behavior.
> 
> That is - cygwin progs interpret / correctly and Windows progs don't.
> 

That statement isn't correct.  The Cygwin programs understand / to be a
reference to your mount point for / while the Win32 programs understand
/ to mean a reference the root of the disk drive letter that is your
current working drive.

You really don't expect Cygwin to change the behavior of non-Cygwin
programs do you?  That isn't feasibly possible.

> I thought my mounts might be the problem, but I've checked and they're the
> same as in the documentation:
> 
>         c:\cygwin\bin on /usr/bin type user (binmode)
>         c:\cygwin\lib on /usr/lib type user (binmode)
>         c:\cygwin on / type user (binmode)
> 

Non-Cygwin programs do not understand a Cygwinism such as mount points. 
No matter how hard you try this isn't going to happen.

> I've tried changing them to textmode but with no effect.  The same thing
> happens whether I use tcsh or bash.
> 
> Is there some shell option I need to set or is it a known - or unknown -
> bug?  Or will windows programs never have a clue about cygnus paths?
> 

They will never have a clue.

> I could live with it if emacs only worked right ...
> 

Use a Cygwinized emacs.  They exist.  Check the http://cygwin.com page
for pointers to ported tools.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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