Bug #279

trap("INT", "p 1") causes ArgumentError

Added by Anonymous over 6 years ago. Updated almost 4 years ago.

[ruby-dev:35533]
Status:Closed
Priority:Low
Assignee:-
ruby -v: Backport:

Description

=begin
trap("INT", "p 1") とすると、ArgumentError になります。

% ./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 ではなりませんし、1.9 の rdoc をみても

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

    という記述があります。

    [田中 哲][たなか あきら][Tanaka Akira]
    =end

History

#1 Updated by Nobuyoshi Nakada over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18084.
=end

Also available in: Atom PDF