From d35f4e6182c86383514ddc08c39f5193816c7268 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 19 Jan 2024 16:40:57 +0000 Subject: [PATCH] testsuite: Fix hardcoded /bin/bash in custom-cc wrapper Not all operating systems have `/bin/bash` available, it is more portable to use `/usr/bin/env bash` For example: https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bash --- cabal-testsuite/PackageTests/CCompilerOverride/custom-cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cabal-testsuite/PackageTests/CCompilerOverride/custom-cc b/cabal-testsuite/PackageTests/CCompilerOverride/custom-cc index 67a1a91cdb2..fa41c1c4c88 100755 --- a/cabal-testsuite/PackageTests/CCompilerOverride/custom-cc +++ b/cabal-testsuite/PackageTests/CCompilerOverride/custom-cc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if which cc >/dev/null 2>&1; then cc -DNOERROR6 "${@}"