X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2FPATH.bashrc;h=fa7fa01ef2b97cc4acfa9b4d90e977c6c3bd12f8;hp=4c5d535330a150da2a4bd0b54ebf05ba2e134c6b;hb=819bb88d5a014a23150b8fd609d194e883958674;hpb=8c1da009c60a70fc256405ca5d9d044ac694a2ad diff --git a/.profile.d/PATH.bashrc b/.profile.d/PATH.bashrc index 4c5d535..fa7fa01 100644 --- a/.profile.d/PATH.bashrc +++ b/.profile.d/PATH.bashrc @@ -1,5 +1,3 @@ -# $Id$ -# # Path information is stored on separate lines in XXXdirs. # We extract each directory exists and add it to the appropriate PATH. # @@ -33,12 +31,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.