Permalink
Browse files

fix exec params for ruby 1.8.7

  • Loading branch information...
1 parent c4b2a36 commit f2ed8938d7a7593088fa15e500069c0f8c3f512f @quozd quozd committed Feb 4, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems/commands/open_command.rb
View
4 lib/rubygems/commands/open_command.rb
@@ -63,8 +63,8 @@ def open_gem name
def open_editor path
Dir.chdir(path) do
pid = fork do
- args = *path
- exec(*@editor.split(/\s+/) + args)
+ args = (*@editor.split(/\s+/) + [path]).join(' ')
+ exec(args)
end
end
end

0 comments on commit f2ed893

Please sign in to comment.