delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/13:50:41

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20031204132909.0354bd18@127.0.0.1>
X-Sender:
Date: Thu, 04 Dec 2003 13:40:29 -0500
To: "Nguyen, Huu-Dung" <hnguyen AT AgfaNDT DOT de>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: RE: How to execute bash file under /usr/bin despite setting
PATH= "/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH"
In-Reply-To: <E753DE009440D611B64600021EF1F1DD6224B6@nt-mail.krautkramer
.de>
References: <E753DE009440D611B64600021EF1F1DD6224B6 AT nt-mail DOT krautkramer DOT de>
Mime-Version: 1.0

You're not curious enough.  This is UNIX semantics and functionality.
However, with UNIX, there is no way to access the contents of the 
actual "/usr/bin" directory once it's mounted.  On Windows, there are
ways (i.e. through Windows, etc).  If you always access "/usr/bin" with 
Cygwin tools, then you'll have no problem.  If you put something in the 
Windows directory which is the equivalent of "/usr/bin" under the Cygwin environment, you won't be able to access those files with Cygwin.  It's 
UNIX mount semantics, that's all.  There are ways around this issue but 
it's easier if you just live with it and move on, unless you have a 
pressing need to do otherwise.

Larry



At 02:56 AM 12/4/2003, Nguyen, Huu-Dung you wrote:
>Thank for the answers
>
>Can any gurus tell me what is the real use of /usr/bin as a mount point and
>/usr/bin as a physically existing directory in the Cygwin directory ?
>Sometime i am too much curious !?
>
>Nguyen
>
>-----Original Message-----
>From: Ronald Landheer-Cieslak [mailto:blytkerchan AT users DOT sourceforge DOT net]
>Sent: Mittwoch, 3. Dezember 2003 13:30
>To: cygwin AT cygwin DOT com
>Subject: Re: How to execute bash file under /usr/bin despite setting
>PATH="/us r/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH"
>
>
>On Wed, Dec 03, 2003 at 10:43:23AM +0100, Nguyen, Huu-Dung wrote:
>> Please help me to understand Cygwin because i am an unexperienced user of
>> CygWin
>> 
>> I want to start some bash files or *.exe under /usr/bin so i have set in
>my
>> profile file
>> ...
>> PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH"
>> ...
>> and put my bash files or *.exe under /usr/bin but i can not start them
>from
>> anywhere in the Cygwin session.
>Did you perchange put your files in c:\cygwin\usr\bin ? (assuming you
>installed
>in c:\cygwin)
>If so, you should know that the c:\cygwin\bin directory is mounted to
>/usr/bin,
>which makes the contents of c:\cygwin\usr\bin invisible from within the
>Cygwin
>environment. This is by design. Move the files to c:\cygwin\bin and you
>should
>be OK.
>
>Note that in all this, I assume you've installed Cygwin's root in c:\cygwin.
>If
>it's in q:\tralala (which is possible, of course) replace every instance of
>c:\cygwin above with q:\tralala.
>
>> Why and what can i do to start them from anywhere in the Cygwin session ?
>If the above doesn't help, look at http://cygwin.com/problems.html to know
>how to give us more information about you problem :)
>
>HTH
>
>rlc
>
>-- 
>Fraud is the homage that force pays to reason.
>        -- Charles Curtis, "A Commonplace Book"
>
>--
>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/
>
>--
>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/


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