(0.9.2compat) improve quoting of environment variable in test 0.9.2compat
authorChristian Ebert <blacktrash@gmx.net>
Tue, 30 Mar 2010 11:12:09 +0100
branch0.9.2compat
changeset 707 e5feed5534d7
parent 704 772628d1ccb5
child 984 a4ea5c2d3ff3
(0.9.2compat) improve quoting of environment variable in test
tests/test-keyword
--- a/tests/test-keyword	Wed Mar 17 23:16:44 2010 +0100
+++ b/tests/test-keyword	Tue Mar 30 11:12:09 2010 +0100
@@ -82,8 +82,8 @@
 diff a hooktest
 
 echo % removing commit hook from config
-sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook
-mv $HGRCPATH.nohook $HGRCPATH
+sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nohook
+mv "$HGRCPATH".nohook "$HGRCPATH"
 rm hooktest
 
 echo % bundle
@@ -324,7 +324,7 @@
 echo % hg cat
 hg cat a b
 
-rm $HGRCPATH
+rm "$HGRCPATH"
 echo % cat
 cat a b
 echo % hg cat