summaryrefslogtreecommitdiffstats
path: root/sample/fullpath.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-19 20:39:26 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-19 20:39:26 +0000
commit252d08dd961deed96a6c37d3e014d78abc64b46d (patch)
tree25ffb62d62fe849e750d5233cca4daa405b4f519 /sample/fullpath.rb
parentdf5b31e34eef759b85447971526c6443ab017fa1 (diff)
downloadruby-252d08dd961deed96a6c37d3e014d78abc64b46d.tar.gz
ruby-252d08dd961deed96a6c37d3e014d78abc64b46d.tar.xz
ruby-252d08dd961deed96a6c37d3e014d78abc64b46d.zip
Fix a bug.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/fullpath.rb')
-rw-r--r--sample/fullpath.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/fullpath.rb b/sample/fullpath.rb
index 252e7dc21..8472e5d8f 100644
--- a/sample/fullpath.rb
+++ b/sample/fullpath.rb
@@ -15,7 +15,7 @@ end
while line = gets()
case line
when /:$/
- path = $_.chop.chop + "/"
+ path = line.chop.chop + "/"
when /^total/, /^d/
when /^(.*\d )(.+)$/
print($1, path, $2, "\n")