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:
parent
b8cd918983
commit
1082ad7823
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue