delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/03/00:27:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Erdely, Michael" <mike AT erdelynet DOT com>
To: <cygwin AT sources DOT redhat DOT com>
Subject: RE: [patch] adding ~/bin to path
Date: Sun, 3 Dec 2000 00:26:19 -0500
Message-ID: <HLEFLHBNJIAFNBEFLEANGEFLCIAA.mike@erdelynet.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <5.0.0.25.0.20001202231629.02a13eb0@pop.bresnanlink.net>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Importance: Normal

So... I guess I don't understand the problem.  If you want system wide shell
changes, you add them to /etc/profile.  If you want user specific changes,
you add them to (in this case) $HOME/.bashrc.

I'd make the global changes in /etc/profile and be done with it.  If you add
$HOME/bin or ~/bin to the path, you'll reach your goal.

Or maybe I'm oversimplifying.

-ME

-----Original Message-----
From: cygwin-owner AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Chris Abbey
Sent: Sunday, December 03, 2000 12:22 AM
To: cygwin AT sources DOT redhat DOT com
Subject: RE: [patch] adding ~/bin to path


At 23:56 12/2/00 -0500, Erdely, Michael wrote:
>Pardon me if I misunderstand, but I just added this line to ~/.bashrc:
>export PATH=$HOME/bin:$PATH
>
>Exited bash and reopened bash.
>echo $PATH returned the old path with "/home/mike/bin:" in front of it.

yup, that's the objective. But ~/.bashrc isn't shipped by default,
/etc/profile is. Putting it in ~/.bashrc also puts the responsibility
on each user, whereas putting it in /etc/profile has the system
do it, just like every *nix I've ever worked on.

now the forces of openness
     have a powerful and
     unexpected new ally
    http://ibm.com/linux/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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