diff --git a/lib/pry/command_context.rb b/lib/pry/command_context.rb index 4a42fa2c..4f7d465f 100644 --- a/lib/pry/command_context.rb +++ b/lib/pry/command_context.rb @@ -11,8 +11,9 @@ class Pry def run(name, *args) if name.start_with? "." cmd = name[1..-1] - command_processor.execute_system_command(Shellwords.join([name] + args), - target) + command_processor. + execute_system_command([name, Shellwords.join(args)].join(' '), + target) else command_set.run_command(self, name, *args) end