From df47e96b6292b489f56ddb05969e0d130c5426ce Mon Sep 17 00:00:00 2001 From: John Mair Date: Wed, 25 Jan 2012 01:07:07 +1300 Subject: [PATCH] bug fix: cat command needed expand_path! --- lib/pry/default_commands/shell.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pry/default_commands/shell.rb b/lib/pry/default_commands/shell.rb index 3a629b48..10fa2c50 100644 --- a/lib/pry/default_commands/shell.rb +++ b/lib/pry/default_commands/shell.rb @@ -220,6 +220,7 @@ class Pry end file_name, line_num = file_name.split(':') + file_name = File.expand_path(file_name) set_file_and_dir_locals(file_name) code = yield(Pry::Code.from_file(file_name))