diff options
| author | samueljohn | 2012-02-07 16:08:06 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-02-08 14:41:55 -0600 |
| commit | 0eb1cadee01f0412e2a08578045d0784f2f1c071 (patch) | |
| tree | b5127cf366677368d503140f96a000bbed73443e /Library/Homebrew/test | |
| parent | a671a13b24d1895ae80c90e040b6647192a9dfe8 (diff) | |
| download | brew-0eb1cadee01f0412e2a08578045d0784f2f1c071.tar.bz2 | |
brew --config: properly handle empty `which` strings
Symptom: If no python/ruby/perl is in your path, then `which x`.chomp
returns an empty string and `unless ""` is still true. So, N/A is never
displayed. Instead, ruby's Pathname.new("").realpath returns the cwd.
(I consider this realpath behavior a ruby bug) Fix: use empty?
Closes Homebrew/homebrew#10027.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test')
0 files changed, 0 insertions, 0 deletions
