#
# Location of the XXXdirs files.
-DIR=$HOME/.profile.d
+DIR="$HOME/.profile.d"
# Set one path to be the same as another.
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
}
[ -z "$path" ] && return
# Export.
- eval export $newpath="$path"
+ eval "export $newpath='$path'"
unset path newpath dirs
}