$PATH
will be tokenized by the shell. This PR just adds a few key quotes to make sure that expansions of $PATH
are handled correctly.
$PATH
will be tokenized by the shell. This PR just adds a few key quotes to make sure that expansions of $PATH
are handled correctly.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For detailed information about the code coverage, see the test coverage report.
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
140@@ -141,7 +141,7 @@ set_cc_for_build() {
141 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
142 # (ghazi@noc.rutgers.edu 1994-08-24)
143 if test -f /.attbin/uname ; then
144- PATH=$PATH:/.attbin ; export PATH
Are you still working on this? If yes, it would be good to address the outstanding feedback. Also, it would be good to add a test for this, to avoid breaking it in the future. For example:
0diff --git a/ci/test/02_run_container.sh b/ci/test/02_run_container.sh
1index edf8f2c30..f82bbcd23 100755
2--- a/ci/test/02_run_container.sh
3+++ b/ci/test/02_run_container.sh
4@@ -70,7 +70,7 @@ if [ "$CI_OS_NAME" == "macos" ]; then
5 fi
6
7 CI_EXEC () {
8- $CI_EXEC_CMD_PREFIX bash -c "export PATH=${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH && cd \"${BASE_ROOT_DIR}\" && $*"
9+ $CI_EXEC_CMD_PREFIX bash -c "export PATH=\"/path_with space:${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH\" && cd \"${BASE_ROOT_DIR}\" && $*"
10 }
11 export -f CI_EXEC
12
As I understand, this doesn’t allow spaces in PATH in any relevant part used by Bitcoin Core, only a space in unused parts of the PATH.