summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-21 07:15:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-21 07:15:06 +0000
commita08cea360d69e6a7c42154f2032590ea3e77a386 (patch)
tree9acce7d674353ed2333d5f731128642392072ba0 /lib
parent7f97e8948d88cb9ce431bd8b4f1c260639ec46a7 (diff)
* pack.c (pack_pack): wrong # comment treatment.
* pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/shell.rb2
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))