X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2FPATH.bashrc;h=3113f75a54ddec55d0fff56c08de953c377c5ee8;hb=f41ffed16658e78da63012d5d2ff9a65457e6897;hp=fa7fa01ef2b97cc4acfa9b4d90e977c6c3bd12f8;hpb=819bb88d5a014a23150b8fd609d194e883958674;p=profile.git diff --git a/.profile.d/PATH.bashrc b/.profile.d/PATH.bashrc index fa7fa01..3113f75 100644 --- a/.profile.d/PATH.bashrc +++ b/.profile.d/PATH.bashrc @@ -3,7 +3,7 @@ # # Location of the XXXdirs files. -DIR=$HOME/.profile.d +DIR="$HOME/.profile.d" # Set one path to be the same as another. function copypath() { @@ -12,7 +12,7 @@ function copypath() { # Sanitise and export. path="$(eval echo \$$oldpath)" - [ -z "$path" ] || eval export $newpath="$path" + [ -z "$path" ] || eval "export $newpath='$path'" unset path newpath oldpath } @@ -48,7 +48,7 @@ function makepath() { [ -z "$path" ] && return # Export. - eval export $newpath="$path" + eval "export $newpath='$path'" unset path newpath dirs }