delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/21/12:37:21

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
Message-Id: <4.3.1.2.20000821122643.01e936a8@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 21 Aug 2000 12:33:48 -0400
To: "Jonas Jensen" <bones0_list AT hotmail DOT com>,
"cygwin AT sourceware DOT cygnus DOT com" <cygwin AT hotpop DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Path in the wrong order
In-Reply-To: <OE30wOcVqws1QJKkuWt000018c4@hotmail.com>
References: <OE46eeFUtLch9wPiyAp00000716 AT hotmail DOT com>
<399FFC19 DOT 2F0BED8E AT delorie DOT com>
<OE32bp3cvpzTHkzZqgI000012d0 AT hotmail DOT com>
<200008211518 DOT LAA27257 AT envy DOT delorie DOT com>
<4 DOT 3 DOT 1 DOT 2 DOT 20000821113529 DOT 00b34800 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 12:25 PM 8/21/2000, Jonas Jensen wrote:
> > > > > Yes, I do that on purpose, but /bin (/usr/bin) is still more left
>than
> > >/sys,
> > > > > right? So that shouldn't matter, right?
> > > >
> > > > /bin didn't show up in cygcheck at all.  Did you look at the output of
> > > > cygcheck?  It shows the path it's using.
> > >
> > >My /usr/bin is the same thing as /bin, just like setup installs it.
>/usr/bin
> > >is in the path with higher priority that /sys...
> >
> > I suggest taking /sys out of your path and see if it makes a difference.
>I
> > agree with you that the description you've given should make it find the
> > Cygwin version of find before the NT but maybe there's more going on here
> > than you realize.  Removing /sys will help you troubleshoot that.
>
>Well, I can't really take out /sys, because that's my system32 folder, and I
>doubt that Windows would boot if I did that. I umounted /sys and took ~/bin
>out of my path, nothing's changed.


First, is this a problem with bash or with the DOS prompt.  If its bash, you
should not be afraid to define a path in /etc/profile or wherever that is
strictly for use with bash and friends and doesn't have pointers to any other
utilities that might conflict with Cygwin.  If the issue is that you're using
the DOS prompt, then your comments make some sense but I fail to see how the
path could change to the UNIXy paths if you're in a DOS prompt.

>Here's another funny thing: "command -V" in Bash returns the NT find, while
>cygcheck finds the right one. Aren't they supposed to find the same program,
>following PATH? Here's what I'm talking about, along with some other output
>to assist:
>
>bono AT BOB ~
>$ command -V find.exe
>find.exe is /c/WINNT/system32/find.exe
>
>bono AT BOB ~
>$ cygcheck find.exe
>Found: d:\cygwin\bin\find.exe
>d:\cygwin\bin\find.exe
>   d:\cygwin\bin\cygwin1.dll
>     C:\WINNT\System32\KERNEL32.dll
>       C:\WINNT\System32\NTDLL.DLL
>
>Use -h to see help about each section
>
>bono AT BOB ~
>$ echo $PATH
>/usr/local/bin:/bin:/c/WINNT/system32:/c/WINNT:/c/WINNT/system32/WBEM:/prog/
>Support Tools/:/prog/Resource Kit/:/usr/bin:/usr/X11R6/bin:/prog/Microsoft
>Visual Studio/Common/Tools/WinNT:/prog/Microsoft Visual
>Studio/Common/MSDev98/Bin:/prog/Microsoft Visual
>Studio/Common/Tools:/prog/Microsoft Visual Studio/VC98/bin
>
>bono AT BOB /bin
>$ ls -l |grep find.exe
>-rwxr-xr-x   1 bono     None        53760 Jan 18  2000 find.exe



If you insist on putting WINNT and friends in your path, list them last!
This is clearly a configuration issue so you're going to need to play 
around with things to get them how you want them.  If you just want 
something that works, follow the recommendations and set up your path for 
bash appropriately.





Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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