From: Mark Wooding Date: Wed, 17 Mar 2010 16:57:35 +0000 (+0000) Subject: dot/bash_profile (__mdw_addto): Quote new value properly. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/584e04e131edf64a326f4b2ccb2633d3e45c6a68 dot/bash_profile (__mdw_addto): Quote new value properly. This surfaces on Windows, where directories on the PATH commonly have spaces in their names (particularly `Program Files'). It doesn't look security critical: you have to be on the other side of the airtight hatch to mess with my initial environment anyway. --- diff --git a/dot/bash_profile b/dot/bash_profile index abd3463..513f754 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -49,7 +49,7 @@ __mdw_addto () { l) val=${new#:}:$val;; r) val=$val$new;; esac - case $change in t) export $var=$val ;; esac + case $change in t) export $var="$val" ;; esac } # --- Set the path variable ---