This was reported in Tigerbrew, but is a worthwhile fix everywhere. Fixes mistydemeo/tigerbrew#177.
This reverts commit 225546a.
Fixes a case where brew would find commands with wrongly-capitalized user input on case-insensitive systems, then error out with a confusing message when an invalid method was sent to Homebrew. e.g.: > brew Update Error: undefined method `Update' for Homebrew:Module
Rationale: some users insist on replacing the /usr/bin/ruby symlink to point to another ruby on their system, which may break homebrew. Use the full Framework path instead, which is less likely to be tampered with. This also reorganizes the brew --config checks to reflect the different path. Fixes #12009. Closes #12333. Signed-off-by: Misty De Meo <email@example.com>
`brew install > file` should not give "export CC=/foo" output on Build Failures. Also moved the "Using clang" output to brew when BuildError is thrown as that is where it is interesting, and not if you just do `brew --env`.
Signed-off-by: Adam Vandenberg <firstname.lastname@example.org>
Rationale: people break their installs by mixing sudo and non-sudo usage. They are used to having to `sudo port install` and shit like that, so I understand why the mixing happens.