Mark Goddard 3084cf67ce CentOS Stream 8: Use /usr/bin/which instead of bash function
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
2021-04-06 12:29:33 +01:00
..
2017-11-28 15:32:49 +00:00
2018-11-20 18:53:09 +00:00
2018-11-05 12:02:31 +00:00
2018-11-20 18:53:09 +00:00
2018-11-20 18:53:09 +00:00