Project

General

Profile

Actions

Bug #279

closed

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

Added by Anonymous over 15 years ago. Updated almost 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 #1

Updated by nobu (Nobuyoshi Nakada) over 15 years ago

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

=begin
Applied in changeset r18084.
=end

Actions

Also available in: Atom PDF

Like0
Like0