summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-25 10:46:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-25 10:46:48 +0000
commit959a99078ea3494fc5ae57b05579b4a2a21fc993 (patch)
treea0424fc41d80a3e3d48fded8481209ca64966873 /sample
parent0778120490e4e1bf7edd9971217d5b07b5dab295 (diff)
commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 30319c3..82b159a 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1191,7 +1191,7 @@ File.unlink "script_tmp" or `/bin/rm -f "script_tmp"`
File.unlink "script_tmp.bak" or `/bin/rm -f "script_tmp.bak"`
$bad = false
-if (dir = File.dirname(File.dirname(dir))) == '.'
+if (dir = File.dirname(File.dirname($0))) == '.'
dir = ""
else
dir << "/"