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 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