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

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 25 Apr 2003 18:41:05 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Qwer Zxcv <partner4progress AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: what determines cygwin path?
In-Reply-To: <20030425223820.89543.qmail@web14811.mail.yahoo.com>
Message-ID: <Pine.GSO.4.44.0304251839200.10996-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 25 Apr 2003, Qwer Zxcv wrote:

> Qwer Zxcv wrote:
> >>> 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?
>
> Max Bowsher wrote:
> >> Windows + /etc/profile + any user customisation.
>
> Can you be more specific about "any user customisation"?
> I know how to fix the windows path. I know how to fix /etc/profile,
> which is currently
>
> > qwerzxcv AT qwerzxcv /d/bin/cygwin/1.3.13-1/bin
> > $ less ../etc/profile
> > PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
>
> > USER="`id -un`"
>
> > # Set up USER's home directory
> > if [ -z "$HOME" ]; then
> >   HOME="/home/$USER"
> > fi
>
> > if [ ! -d "$HOME" ]; then
> >   mkdir -p "$HOME"
> > fi
>
> > export HOME USER
>
> > for i in /etc/profile.d/*.sh ; do
> >   if [ -f $i ]; then
> >     . $i
> >   fi
> > done
>
> > export MAKE_MODE=unix
> > export PS1='\[\033]0;\w\007
> > \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> > $ '
>
> > cd "$HOME"
>
> thus seems not to be problematic. What I don't know is, in
>
> > PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
>
> * Where are
>
>   /usr/local/bin:/usr/bin:/bin
>   set?

"man mount"

> * Is $PATH (at the end) coming only from the windows path, or from
>   somewhere else?

Only from Windows (it is converted to POSIX, though).

> * What other user customizations are relevant?

Anything in your home directory, any /etc/* files you've customized...
Anything you installed in /usr/local/bin...  Maybe something else.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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