-
Mark Goddard authored
A bug has been introduced to the which package in CentOS Stream 8 which causes it to fail when used with the following bash options: set -u set -o pipefail Then, when running which we see the following output: environment: line 1: _declare: unbound variable As found by Pierre, this seems to be caused by the implementation of which as a bash function which references an unbound variable (_declare). It's tracked in Fedora by https://bugzilla.redhat.com/show_bug.cgi?id=1944877# . This change works around the issue by using the /usr/bin/which binary. Co-Authored-By:
Pierre Riteau <pierre@stackhpc.com> Change-Id: I468d4e0460c13791b9f01d5854ef45472528c6fe Story: 2008795 Task: 42215
Mark Goddard authoredA bug has been introduced to the which package in CentOS Stream 8 which causes it to fail when used with the following bash options: set -u set -o pipefail Then, when running which we see the following output: environment: line 1: _declare: unbound variable As found by Pierre, this seems to be caused by the implementation of which as a bash function which references an unbound variable (_declare). It's tracked in Fedora by https://bugzilla.redhat.com/show_bug.cgi?id=1944877# . This change works around the issue by using the /usr/bin/which binary. Co-Authored-By:
Pierre Riteau <pierre@stackhpc.com> Change-Id: I468d4e0460c13791b9f01d5854ef45472528c6fe Story: 2008795 Task: 42215