what determines cygwin path?

Max Bowsher maxb@ukf.net
Fri Apr 25 23:41:00 GMT 2003


Qwer Zxcv wrote:
> 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?

Windows + /etc/profile + any user customisation.

No more magic than that.

Oh, and the quickest fix might be to purge everything Cygwin from your
system and reinstall. Cygwin really isn't designed to run alongside another
version of itself.

Max.


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