Project

General

Profile

Actions

Bug #17623

closed

irb starts with some local variables already defined

Added by UlyssesZhan (Ulysses Zhan) about 3 years ago. Updated over 2 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
[ruby-core:102468]

Description

irb(main):001:0> a = 1
=> 1
irb(main):002:0> def f = a
=> :f
irb(main):003:0> f
=> "D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/irb-1.3.0/exe/irb"

I have not idea what it means.
The codes just work fine outside irb.
Maybe it is a bug.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0