aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_inreplace.rb
diff options
context:
space:
mode:
authorsamueljohn2012-02-07 16:08:06 +0100
committerJack Nagel2012-02-08 14:41:55 -0600
commit0eb1cadee01f0412e2a08578045d0784f2f1c071 (patch)
treeb5127cf366677368d503140f96a000bbed73443e /Library/Homebrew/test/test_inreplace.rb
parenta671a13b24d1895ae80c90e040b6647192a9dfe8 (diff)
downloadbrew-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/test_inreplace.rb')
0 files changed, 0 insertions, 0 deletions