changeset 50:b7a63c71b07f

[bash] export PATH last, added various default solaris PATH.
author Edho Prima Arief <me@myconan.net>
date Wed, 27 Apr 2011 22:42:33 +0700
parents b924652e169d
children 4496c7bf953d
files bash
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Wed Apr 27 22:38:44 2011 +0700
+++ b/bash	Wed Apr 27 22:42:33 2011 +0700
@@ -2,7 +2,7 @@
 
 [ -f .ecos_bash.before ] && . .ecos_bash.before
 
-export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
+PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
 
 PS1='[\u@\h \W]\$ '
 
@@ -21,7 +21,9 @@
   SunOS)
     [ -x /usr/gnu/bin/rm ] && _has_rm_I=y
     [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y
-    [ -d /usr/gnu/bin ] && export PATH="/usr/gnu/bin:${PATH}"
+    [ -d /usr/gnu/bin ] && PATH="/usr/gnu/bin:${PATH}"
+    [ -d /opt/csw/bin ] && PATH="/opt/csw/bin:${PATH}"
+    [ -d /opt/csw/sbin ] && PATH="/opt/csw/sbin:${PATH}"
   ;;
   *BSD)
     _has_rm_I=y
@@ -43,4 +45,5 @@
 unset _has_gnu_ls
 unset _has_bsd_ls
 
+export PATH
 [ -f .ecos_bash.after ] && . .ecos_bash.after