Project

General

Profile

Bug #386

008: unexpected tINTEGER

Added by Shyouhei Urabe over 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
Backport:
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
[ruby-dev:35729]

Description

=begin
以下のように、"008"を入力として与えると、"007"とも"08"とも違う妙なエラーになるようです。

zsh % ./miniruby -ve '007'
ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: warning: useless use of a literal in void context

zsh % ./miniruby -ve '08'

ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: Invalid octal digit
-e:1: warning: useless use of a literal in void context

zsh % ./miniruby -ve '008'
ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: warning: useless use of a literal in void context
-e:1: syntax error, unexpected tINTEGER, expecting $end
=end

History

#1 Updated by Nobuyoshi Nakada over 7 years ago

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

=begin
Applied in changeset r18318.
=end

Also available in: Atom PDF