delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/02/09:30:16

From: mecklen AT ptc DOT com (Robert Mecklenburg)
Subject: Re: pwd and case
2 Jul 1997 09:30:16 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199707021307.JAA16820.cygnus.gnu-win32@phldev1>
Original-To: noer AT cygnus DOT com
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <199707012149.OAA03831@cirdan.cygnus.com> (message from Geoffrey
Noer on Tue, 1 Jul 1997 14: 49:51 -0700 (PDT))
Original-Sender: owner-gnu-win32 AT cygnus DOT com

>>>>> On Tue, 1 Jul 1997, Geoffrey Noer <noer AT cygnus DOT com> said:
> 
> Robert Mecklenburg wrote:
>> 
>> We are attempting to port a complex build environment from Unix to NT
>> and have a problem with pwd.  When I execute pwd (through a maze or
>> emacs subshells, make, and bash) then case of the result is typically
>> not what I expect.  For instance, pwd returns "//d/Users/mecklen"
>> instead of "//D/Users/Mecklen".  Since I use sed and other text tools
>> to compute other directory values this causes problems.  So a couple
>> of questions:
>> 
>> Has anyone else seen this problem?
>> How does pwd compute the case of the current directory?
> 
> If I were you, I would mount D: to /d and then refer to paths using
> /d instead.  

Unfortunately we are using non-cygnus gnu tools which will not
recognize cygnus style mounts (I believe).  For instance, Microsoft's
C++ compiler and Hip Perl.  In fact, they don't understand "//D"
either, but that's part of what the seding is all about.  We can't use
"D:" type names exclusively since with gnu make a dependent with a
colon is a syntax error.

>	       Alternatively, use UNC paths.  

Excuse my ignorance, but I thought "//d/users/mecklen" _was_ a UNC
path (or more correctly "\\d\users\mecklen").  Am I wrong?  If this
isn't a unc path what is?  This doesn't solve my sed problem (that I
can see).

>					      (The double backslash
> shortcut may go away in the future).

Really?  So if I use cygnus gnu tools to reference files on different
drives I will have to mount all the drives?  If I then need to use
non-Cygnus tools (which don't understand Cygnus mount points) I have
to translate?  When do you think this might happen?

BTW, How does pwd compute the case of the current directory?

Thanks,
-- 
Robert Mecklenburg              Voice: 610-834-1010 x248
Parametric Technology Corp.     FAX:   610-834-7652
West Conshohocken, PA           Home:  215-413-4018 mecklen AT bellatlantic DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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