delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/02/23:57:10

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 List" <cygwin AT sources DOT redhat DOT com>
Subject: RE: [patch] adding ~/bin to path
Date: Sat, 2 Dec 2000 23:56:21 -0500
Message-ID: <HLEFLHBNJIAFNBEFLEANMEFJCIAA.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.20001202211316.029f33a0@pop.bresnanlink.net>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Importance: Normal

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.

-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: Saturday, December 02, 2000 10:14 PM
To: cygwin AT sources DOT redhat DOT com
Subject: [patch] adding ~/bin to path


I just had some one complain that their own bin dir wasn't being
picked up like it was on Linux... the fix was a trivial addition
to /etc/profile I had put on my own machine ages ago without even
thinking about it.

~/cygwin/src/winsup/cinstall $ cvs diff -ub desktop.cc
Index: desktop.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/desktop.cc,v
retrieving revision 2.6
diff -u -b -r2.6 desktop.cc
--- desktop.cc  2000/11/09 01:40:15     2.6
+++ desktop.cc  2000/12/03 03:11:46
@@ -65,6 +65,9 @@
    "if [ -z \"$HOME\" ]; then",
    "  HOME=\"/home/$USER\"",
    "fi",
+  "if [ -d \"$HOME/bin\" ]; then",
+  "  PATH=\"$HOME/bin:$PATH\"",
+  "fi",
    "",
    "if [ ! -d \"$HOME\" ]; then",
    "  mkdir -p \"$HOME\"",
~/cygwin/src/winsup/cinstall $


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