From 701904ad5c88695587e4b668c082d935b22e0497 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Fri, 17 Sep 2021 22:13:43 +0200 Subject: [PATCH 1/2] shims/super/cc: run in bash shell --- Library/Homebrew/shims/super/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 342ebef458..c629efa9ee 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Make sure this shim uses the same Ruby interpreter that is used by Homebrew. if [[ -z "${HOMEBREW_RUBY_PATH}" ]] then From e224006b4979c78c2966d7c1ef7df9b5f9dbc7d2 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sat, 18 Sep 2021 00:40:40 +0100 Subject: [PATCH 2/2] test/bash_spec: ignore cc script --- Library/Homebrew/test/bash_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/test/bash_spec.rb b/Library/Homebrew/test/bash_spec.rb index 07ba4cd7cb..0a3a80fe72 100644 --- a/Library/Homebrew/test/bash_spec.rb +++ b/Library/Homebrew/test/bash_spec.rb @@ -48,6 +48,7 @@ describe "Bash" do next if path.directory? next if path.symlink? next unless path.executable? + next if path.basename.to_s == "cc" # `bash -n` tries to parse the Ruby part next unless path.read(12) == "#!/bin/bash\n" expect(path).to have_valid_bash_syntax