From 320e99d8dda5eb5fc327fcbe20126cdd7fcd059d Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 8 Feb 2000 08:54:01 +0000 Subject: 2000-02-08 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/eval.rb | 2 +- sample/mkproto.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sample') diff --git a/sample/eval.rb b/sample/eval.rb index 216bf8ca39..b9a54df34c 100644 --- a/sample/eval.rb +++ b/sample/eval.rb @@ -31,7 +31,7 @@ while TRUE end begin print eval(line).inspect, "\n" - rescue + rescue ScriptError, StandardError $! = 'exception raised' unless $! print "ERR: ", $!, "\n" end diff --git a/sample/mkproto.rb b/sample/mkproto.rb index 8661240085..3423a15905 100644 --- a/sample/mkproto.rb +++ b/sample/mkproto.rb @@ -14,7 +14,7 @@ while gets() else type = "" end - while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") + while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") && $~ args.push type + " " + $1.strip end else -- cgit v1.2.3