discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$PATH from GNUstep.sh


From: David Relson
Subject: $PATH from GNUstep.sh
Date: Wed, 28 Feb 2001 18:47:57 -0500

My development environment is Mandrake Linux, GNOME, terminal windows, emacs, and emacs-shell windows. I've noticed that the GNUstep directories, i.e. /usr/GNUstep/xxx/Tools, appear multiple times in my PATH. Here's how I count and display them:

echo $PATH | tr ":" "\n" | sort | uniq -c | grep GNU

and the output is:

      6 /home/relson/GNUstep/Tools
      6 /usr/GNUstep/Local/Tools
      6 /usr/GNUstep/Network/Tools
      6 /usr/GNUstep/System/Tools

This indicates that my login script, i.e. .bashrc and the scripts it calls, are being invoked 6 times. I've corrected this behavior by modifying GNUstep.sh to test whether it's being run for the first time or a second time. I'm using environment variable GNUSTEP_ROOT for the test.

The patch is below.

David

--- GNUstep.sh.orig     Fri Feb 23 19:52:33 2001
+++ GNUstep.sh  Wed Feb 28 18:46:33 2001
@@ -21,6 +21,7 @@
 #   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #

+if [ -z "$GNUSTEP_ROOT" ] ; then
 #
 # Set the GNUstep system root and local root
 #
@@ -138,3 +139,4 @@

 export CLASSPATH

+fi
--------------------------------------------------------
David Relson                   Osage Software Systems, Inc.
relson@osagesoftware.com       Ann Arbor, MI 48103
www.osagesoftware.com          tel:  734.821.8800




reply via email to

[Prev in Thread] Current Thread [Next in Thread]