X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2FPATH.bashrc;h=66cd7090dfa7a948c07abca584b9aca5fd90dc14;hb=b2b521609581abd9a5b794d5ce0778640f6ac0f4;hp=4c5d535330a150da2a4bd0b54ebf05ba2e134c6b;hpb=8c1da009c60a70fc256405ca5d9d044ac694a2ad;p=profile.git diff --git a/.profile.d/PATH.bashrc b/.profile.d/PATH.bashrc index 4c5d535..66cd709 100644 --- a/.profile.d/PATH.bashrc +++ b/.profile.d/PATH.bashrc @@ -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.