what determines cygwin path?

Qwer Zxcv partner4progress@yahoo.com
Fri Apr 25 23:06:00 GMT 2003


Qwer Zxcv wrote:
>>> 0 How can I fix one or both of my current configurations?

Max Bowsher wrote:
>> Check if echo/grep exist. 

OK, so I roll back to my old cygwin:

* changed my windows (w2k sp2) path to 

PATH=d:\bin\cygwin\1.3.13-1\bin;d:\bin\cygwin\1.3.13-1\usr\X11R6\bin;d:\bin;C:\WINNT\system32;C:\WINNT;

  etc. The only cygwin references are the two at the front.

* run the shortcut to my old bash

I get the message

> bash: /bin/echo: No such file or directory
> bash: /bin/grep: No such file or directory

But both grep and echo are in /d/bin/cygwin/1.3.13-1/bin/, and run if
I cd there. 'id' also runs from there.

> qwerzxcv@qwerzxcv /d/bin/cygwin/1.3.13-1/bin
> $ id
> uid=1002(qwerzxcv) gid=513(None)
groups=513(None),544(Administrators),545(Users)

>> Find out why your path is weird.

That's what I'd like to know! so I run 

> qwerzxcv@qwerzxcv /d/bin/cygwin/1.3.13-1/bin
> $ cygcheck -svr
> Cygwin Win95/NT Configuration Diagnostics
> Current System Time: Fri Apr 25 17:33:58 2003

> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

> Path:   D:\bin\cygwin\1.3.22-1\usr\local\bin
>         D:\bin\cygwin\1.3.22-1\bin
>         d:\bin\cygwin\1.3.10\bin
>         D:\bin\cygwin\1.3.22-1\usr\X11R6\bin
>         D:\bin\cygwin\1.3.22-1\bin
>         c:\WINNT\system32
>         c:\WINNT
>         c:\WINNT\System32\Wbem
>         g:\bin\cmvc\1.7\CMVC\EXE
>         .
> `id' program not found

which is completely wrong. So what I'd like to know is, how is
cygwin's path determined? (Apparently not entirely by the windows
path, at least not by default.) And how do I fix it?

>> Also please note: I'd appreciate it if you could reply directly to
>> me, as well as to the list. I'm on the digest, to avoid flooding my
>> inbox, but I'd like to get this problem fixed ASAP, without waiting
>> for the digest. I have some scripts I need to run, in order to get
>> "real work" done, but for now I'm "dead in the water" :-(


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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



More information about the Cygwin mailing list