# File lib/pry/command.rb, line 185 def check_for_command_name_collision(command_name_match, arg_string) collision_type = target.eval("defined?(#{command_name_match})") collision_type ||= 'local-variable' if arg_string.match(%r{\A\s*[-+*/%&|^]*=}) if collision_type output.puts "#{Pry::Helpers::Text.bold('WARNING:')} Calling Pry command '#{command_name_match}'," + "which conflicts with a #{collision_type}.\n\n" end rescue Pry::RescuableException end