This is the mail archive of the cygwin@sources.redhat.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]

Re: Path in the wrong order


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

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@BOB ~
$ command -V find.exe
find.exe is /c/WINNT/system32/find.exe

bono@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@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@BOB /bin
$ ls -l |grep find.exe
-rwxr-xr-x   1 bono     None        53760 Jan 18  2000 find.exe

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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