diff --git a/lib/pry/command_processor.rb b/lib/pry/command_processor.rb index 3adf18d0..92e541a5 100644 --- a/lib/pry/command_processor.rb +++ b/lib/pry/command_processor.rb @@ -63,7 +63,7 @@ class Pry begin interp_val = interpolate_string(val, target) rescue NameError - return nil + next end val.replace interp_val if command_regex =~ interp_val