Added choice command to wrap zenity or xmessage.
[profile.git] / .profile.d / PATH.bashrc
index 4c5d535..66cd709 100644 (file)
@@ -33,12 +33,12 @@ function makepath() {
 '
   # Read them.
   path=
-  for dir in $(cat "$DIR/$dirs"); do
+  while read dir; do
     dir=$(eval echo "$dir")
     [ -d "$dir" ] || continue
 
     path="$path:$dir"
-  done
+  done < "$DIR/$dirs"
   unset dir
 
   # Restore IFS.