author | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Jul 2008 19:35:10 +0000 (12:35 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Jul 2008 19:36:16 +0000 (12:36 -0700) | ||
commit | bfce5087ee01fdead5cdc52180c8eef22adbbd71 | |
tree | b38a930d7da004996bda676e3d6679bcb1df3bfc | tree | snapshot |
parent | c30e699fc509f43f459c17d3148e7d866fb9157a | commit | diff |
Makefile: fix shell quoting
Makefile records paths to a few programs in GIT-BUILD-OPTIONS file. These
paths need to be quoted twice: once to protect specials from the shell
that runs the generated GIT-BUILD-OPTIONS file, and again to protect them
(and the first level of quoting itself) from the shell that runs the
"echo" inside the Makefile.
You can test this by trying:
$ ln -s /bin/tar "$HOME/Tes' program/tar"
$ make TAR="$HOME/Tes' program/tar" test
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile records paths to a few programs in GIT-BUILD-OPTIONS file. These
paths need to be quoted twice: once to protect specials from the shell
that runs the generated GIT-BUILD-OPTIONS file, and again to protect them
(and the first level of quoting itself) from the shell that runs the
"echo" inside the Makefile.
You can test this by trying:
$ ln -s /bin/tar "$HOME/Tes' program/tar"
$ make TAR="$HOME/Tes' program/tar" test
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
t/t5000-tar-tree.sh | diff | blob | history |