--- a/tests/test-oldcgi.t Tue Sep 18 22:40:03 2018 -0400
+++ b/tests/test-oldcgi.t Tue Sep 18 23:47:21 2018 -0400
@@ -4,7 +4,7 @@
$ hg init test
$ cat >hgweb.cgi <<HGWEB
- > #!$PYTHON
+ > #!"$PYTHON"
> #
> # An example CGI script to use hgweb, edit as necessary
>
@@ -26,7 +26,7 @@
> HGWEBDIRCONF
$ cat >hgwebdir.cgi <<HGWEBDIR
- > #!$PYTHON
+ > #!"$PYTHON"
> #
> # An example CGI script to export multiple hgweb repos, edit as necessary
>
@@ -62,15 +62,15 @@
$ chmod 755 hgwebdir.cgi
$ . "$TESTDIR/cgienv"
- $ $PYTHON hgweb.cgi > page1
- $ $PYTHON hgwebdir.cgi > page2
+ $ "$PYTHON" hgweb.cgi > page1
+ $ "$PYTHON" hgwebdir.cgi > page2
$ PATH_INFO="/test/"
$ PATH_TRANSLATED="/var/something/test.cgi"
$ REQUEST_URI="/test/test/"
$ SCRIPT_URI="http://hg.omnifarious.org/test/test/"
$ SCRIPT_URL="/test/test/"
- $ $PYTHON hgwebdir.cgi > page3
+ $ "$PYTHON" hgwebdir.cgi > page3
$ grep -i error page1 page2 page3
[1]