This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: [patch] adding ~/bin to path


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@sources.redhat.com
[mailto:cygwin-owner@sources.redhat.com]On Behalf Of Chris Abbey
Sent: Saturday, December 02, 2000 10:14 PM
To: cygwin@sources.redhat.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@sourceware.cygnus.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]