From 4b6b39ac66ca15f3d5b0e157ea22b3297f7c5baf Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Mon, 6 Apr 2009 14:17:04 +0000 Subject: [PATCH] Change "~/path" to "${HOME}/path" Rather than relying on the shell's implicit expansion of ~, which doesn't work when the path is wrapped in quotes anyway, explicitly expand ${HOME}. --- scripts/module-create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/module-create.sh b/scripts/module-create.sh index f816362..5cf3b9f 100755 --- a/scripts/module-create.sh +++ b/scripts/module-create.sh @@ -62,7 +62,7 @@ get_cname() { # for each argument X, it will replace @X@ with ${X} do_parameter_subst() { CNAME=$(get_cname ${NAME}) - do_cmd source "~/.lwbuildrc" || exit 1 + do_cmd source "${HOME}/.lwbuildrc" || exit 1 for param in P NAME CNAME AUTHOR EMAIL VIM_MODELINE KATE_MODELINE $@ do do_cmd_redir sedscript echo "s,@${param}@,${!param},g" || exit 1