Project

General

Profile

Actions

Bug #279

closed

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

Added by Anonymous over 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:35533]

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

Actions

Also available in: Atom PDF

Like0
Like0