From 0b8663696d3af3515f5e8b8cb2dee06e77d85333 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 21 Feb 2002 07:15:06 +0000 Subject: * pack.c (pack_pack): wrong # comment treatment. * pack.c (pack_unpack): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/shell.rb b/lib/shell.rb index 6b44cc3e6..d641657cb 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)) -- cgit