[Bug:1.9] trap("INT", "p 1") causes ArgumentError

trap(“INT”, “p 1”) e$B$H$9$k$H!"e(BArgumentError e$B$K$J$j$^$9!#e(B

% ./ruby -ve ‘trap(“INT”, “p 1”)’
ruby 1.9.0 (2008-07-16 revision 18083) [i686-linux]
-e:1:in trap': wrong trap - p 1 (ArgumentError) from -e:1:in

1.8 e$B$G$O$J$j$^$;$s$7!"e(B1.9 e$B$Ne(B rdoc e$B$r$_$F$be(B

  • Signal.trap( signal, command ) => obj

e$B$H$$$&5-=R$,$"$j$^$9!#e(B

e$B%A%1%C%He(B #279 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r18084.

http://redmine.ruby-lang.org/issues/show/279