aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorilovezfs2017-06-01 04:06:40 -0700
committerGitHub2017-06-01 04:06:40 -0700
commit197392b56d38a4f5225886f1a10e2ccaa51faa98 (patch)
tree14bf38f815db5fc30c3d1e26dfb0a18d4e536540 /Library/Homebrew/cmd
parent63b2eb9ffd1a0131194e99c65e3f0e1e1980ed9b (diff)
downloadbrew-197392b56d38a4f5225886f1a10e2ccaa51faa98.tar.bz2
Revert "Fix operator spacing."
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/list.rb2
-rw-r--r--Library/Homebrew/cmd/search.rb2
-rw-r--r--Library/Homebrew/cmd/switch.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index f5c4e68ac..790d858aa 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -129,7 +129,7 @@ module Homebrew
names.each do |d|
versions = d.subdirs.map { |pn| pn.basename.to_s }
next if ARGV.include?("--multiple") && versions.length < 2
- puts "#{d.basename} #{versions * " "}"
+ puts "#{d.basename} #{versions*" "}"
end
end
end
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index ed438f846..f71a14ba1 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -114,7 +114,7 @@ module Homebrew
def search_formulae(regex)
aliases = Formula.alias_full_names
- results = (Formula.full_names + aliases).grep(regex).sort
+ results = (Formula.full_names+aliases).grep(regex).sort
results.map do |name|
begin
diff --git a/Library/Homebrew/cmd/switch.rb b/Library/Homebrew/cmd/switch.rb
index a40b4d88e..6eed1fd96 100644
--- a/Library/Homebrew/cmd/switch.rb
+++ b/Library/Homebrew/cmd/switch.rb
@@ -25,7 +25,7 @@ module Homebrew
end
# Does the target version exist?
- unless (rack/version).directory?
+ unless (rack+version).directory?
onoe "#{name} does not have a version \"#{version}\" in the Cellar."
versions = rack.subdirs.map { |d| Keg.new(d).version }
@@ -41,7 +41,7 @@ module Homebrew
keg.unlink
end
- keg = Keg.new(rack/version)
+ keg = Keg.new(rack+version)
# Link new version, if not keg-only
if keg_only?(rack)