changeset 22157:bd45d92883f9

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.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 13 Aug 2014 22:37:09 -0700
parents 03a45eff9d2b
children bc2132dfc0a4
files tests/test-alias.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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