Height argument is now optional.
[profile.git] / .profile.d / PATH.bashrc
index 20fbf9b..1a271aa 100644 (file)
@@ -30,6 +30,7 @@ function makepath() {
   # Read them.
   path=
   for dir in $(cat "$DIR/$dirs"); do
+    dir=$(eval echo "$dir")
     [ -d "$dir" ] || continue
 
     path="$path:$dir"
@@ -50,7 +51,7 @@ makepath PATH bindirs
 makepath C_INCLUDE_PATH incdirs
 copypath CPLUS_INCLUDE_PATH C_INCLUDE_PATH
 makepath LD_LIBRARY_PATH libdirs
-copypath LD_RUN_PATH LD_LIBRARY_PATH
+copypath LD_RUN_PATH PATH
 makepath MANPATH mandirs
 makepath PKG_CONFIG_PATH pkgdirs