Skip to content
Snippets Groups Projects
Commit 501dc6b1 authored by Katsunori FUJIWARA's avatar Katsunori FUJIWARA
Browse files

tests: introduce "checkeditform-n-cat.sh" script to invoke "cat" in it safely

Before this patch, a part of "test-transplant.t" fails unexpectedly on
Windows environment, because semicolon (";") in HGEDITOR isn't
recognized as the command separator by "cmd.exe".

This patch newly introduces "checkeditform-n-cat.sh" script to invoke
"cat" in it safely anywhere.
parent 8d43c6bb
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,11 @@
> env | grep HGEDITFORM
> true
> EOF
$ HGEDITOR="sh $TESTTMP/checkeditform.sh; cat" hg transplant --edit 7
$ cat > $TESTTMP/checkeditform-n-cat.sh <<EOF
> env | grep HGEDITFORM
> cat \$*
> EOF
$ HGEDITOR="sh $TESTTMP/checkeditform-n-cat.sh" hg transplant --edit 7
applying ffd6818a3975
HGEDITFORM=transplant.normal
b3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment