diff options
Diffstat (limited to 'lib/shell.rb')
-rw-r--r-- | lib/shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shell.rb b/lib/shell.rb index 6b44cc3e64..d641657cbe 100644 --- a/lib/shell.rb +++ b/lib/shell.rb @@ -116,7 +116,7 @@ class Shell attr_reader :process_controller def expand_path(path) - if /^\// =~ path + if /^[\/~]/ =~ path File.expand_path(path) else File.expand_path(File.join(@cwd, path)) |