diff --git a/tests/test-alias.t b/tests/test-alias.t index 0b1bbc46516ea3a022f5b9e3893525d7f951b10d_dGVzdHMvdGVzdC1hbGlhcy50..b5cc838dd999da5dd262536475a336a7e1ab5c53_dGVzdHMvdGVzdC1hbGlhcy50 100644 --- a/tests/test-alias.t +++ b/tests/test-alias.t @@ -1,3 +1,4 @@ + $ HGFOO=BAR; export HGFOO $ cat >> $HGRCPATH <<EOF > [extensions] > graphlog= @@ -34,6 +35,10 @@ > idaliasshell = !echo test > parentsshell1 = !echo one > parentsshell2 = !echo two + > escaped1 = !echo 'test\$\$test' + > escaped2 = !echo "HGFOO is \$\$HGFOO" + > escaped3 = !echo "\$1 is \$\$\$1" + > escaped4 = !echo '\$\$0' '\$\$@' > > [defaults] > mylog = -q @@ -279,6 +284,18 @@ main +shell aliases with escaped $ chars + + $ hg escaped1 + test$test + $ hg escaped2 + HGFOO is BAR + $ hg escaped3 HGFOO + HGFOO is BAR + $ hg escaped4 test + $0 $@ + + invalid arguments $ hg rt foo