Show More
@@ -1,3 +1,4 b'' | |||||
|
1 | $ HGFOO=BAR; export HGFOO | |||
1 | $ cat >> $HGRCPATH <<EOF |
|
2 | $ cat >> $HGRCPATH <<EOF | |
2 | > [extensions] |
|
3 | > [extensions] | |
3 | > graphlog= |
|
4 | > graphlog= | |
@@ -34,6 +35,10 b'' | |||||
34 | > idaliasshell = !echo test |
|
35 | > idaliasshell = !echo test | |
35 | > parentsshell1 = !echo one |
|
36 | > parentsshell1 = !echo one | |
36 | > parentsshell2 = !echo two |
|
37 | > parentsshell2 = !echo two | |
|
38 | > escaped1 = !echo 'test\$\$test' | |||
|
39 | > escaped2 = !echo "HGFOO is \$\$HGFOO" | |||
|
40 | > escaped3 = !echo "\$1 is \$\$\$1" | |||
|
41 | > escaped4 = !echo '\$\$0' '\$\$@' | |||
37 | > |
|
42 | > | |
38 | > [defaults] |
|
43 | > [defaults] | |
39 | > mylog = -q |
|
44 | > mylog = -q | |
@@ -279,6 +284,18 b' shell alias defined in other repo' | |||||
279 | main |
|
284 | main | |
280 |
|
285 | |||
281 |
|
286 | |||
|
287 | shell aliases with escaped $ chars | |||
|
288 | ||||
|
289 | $ hg escaped1 | |||
|
290 | test$test | |||
|
291 | $ hg escaped2 | |||
|
292 | HGFOO is BAR | |||
|
293 | $ hg escaped3 HGFOO | |||
|
294 | HGFOO is BAR | |||
|
295 | $ hg escaped4 test | |||
|
296 | $0 $@ | |||
|
297 | ||||
|
298 | ||||
282 | invalid arguments |
|
299 | invalid arguments | |
283 |
|
300 | |||
284 | $ hg rt foo |
|
301 | $ hg rt foo |
General Comments 0
You need to be logged in to leave comments.
Login now