1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Allowed command name to be more than one word (hapenning sometimes, when using

edit-method)
This commit is contained in:
Mon ouïe 2011-04-29 18:17:49 +02:00
parent b8cd918983
commit 1082ad7823

View file

@ -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