test-alias: add some tests to ensure we aren't double-substituting
authorSiddharth Agarwal <sid0@fb.com>
Wed, 13 Aug 2014 22:37:09 -0700
changeset 22157 bd45d92883f9
parent 22156 03a45eff9d2b
child 22158 bc2132dfc0a4
test-alias: add some tests to ensure we aren't double-substituting An earlier iteration of an upcoming patch caused inadvertent double substitution. Ensure we have test coverage for this.
tests/test-alias.t
--- a/tests/test-alias.t	Thu Jul 31 16:03:26 2014 -0700
+++ b/tests/test-alias.t	Wed Aug 13 22:37:09 2014 -0700
@@ -229,6 +229,10 @@
   foo
   $ hg echoall 'test $2' foo
   test $2 foo
+  $ hg echoall 'test $@' foo '$@'
+  test $@ foo $@
+  $ hg echoall 'test "$@"' foo '"$@"'
+  test "$@" foo "$@"
   $ hg echo1 foo bar baz
   foo
   $ hg echo2 foo bar baz