delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/25/18:18:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <004701c30b78$9019b210$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Qwer Zxcv" <partner4progress AT yahoo DOT com>, <cygwin AT cygwin DOT com>
References: <20030425214653 DOT 13670 DOT qmail AT web14801 DOT mail DOT yahoo DOT com>
Subject: Re: what determines cygwin path?
Date: Fri, 25 Apr 2003 23:18:13 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

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

- Raw text -


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