Re: Not in PATH syndrome?

"J.H. vd Water via Cygwin" <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
On 1/12/26 23:21, Brian Inglis via Cygwin wrote:

Hi Brian,

> Would be helpful in each case to see:
> 
>     $ cygpath -m /
>     $ pwd
>     $ cat -A <<< "$PATH"
> 

1. Using Cygwin in e:/Cygwin2: <= TWO

@@ cygpath -m /
E:/Cygwin2

@@ pwd
/home/Henri

@@ cat -A <<< "$PATH"
/usr/local/bin:/usr/bin:/drv/c/WINDOWS/System32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin$

2. Using Cygwin in e:/Cygwin:

@@ cygpath -m /
E:/Cygwin

@@ pwd
/home/Henri

@@ cat -A <<< "$PATH"
/usr/local/bin:/usr/bin:/drv/c/WINDOWS/System32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin$

---
Are you going to ask me for "cygcheck -sr" when we meet again here :-)

Btw, the next thing I did, was mounting e:/cygwin2 on /usr/xlocal
and creating /usr/xlocal/{bin,etc,lib} (while using e:/Cygwin) :

@@ PATH=/usr/xlocal/bin:$PATH which --version
@@ echo $?
127

@@ PATH=/usr/xlocal/bin:$PATH strace which --version | grep Carlo
GNU which v2.23, Copyright (C) 1999 - 2025 Carlo Wood.

Sort of "A mingw executable (strace) helping a Cygwin executable
(which) finding its libraries :-)

Regards Henri

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.