In ir, __FILE__ not the same as in irb nor jirb

hi all,
not sure if it matters, in both irb and jirb we get “(irb)”, however in
ir
(on 0.9.2) i’m getting “(eval)”
i was just fiddling around with ir and didn’t expect this

[160] > iirb
irb(main):001:0> FILE
=> “(irb)”
irb(main):002:0> exit

Looks like that might have been fixed in RC1, can you try to repro
there?

JD

From: [email protected]
[mailto:[email protected]] On Behalf Of Dotan N.
Sent: Tuesday, January 12, 2010 12:50 PM
To: [email protected]
Subject: [Ironruby-core] in ir, FILE not the same as in irb nor jirb

hi all,
not sure if it matters, in both irb and jirb we get “(irb)”, however in
ir (on 0.9.2) i’m getting “(eval)”
i was just fiddling around with ir and didn’t expect this

Actually, I’m pretty sure Dotan just tried it in ir.exe:

C:\dev\jschementi_ironruby>rbr
IronRuby 0.9.3.0 on .NET 2.0.50727.4927
Copyright © Microsoft Corporation. All rights reserved.

FILE
=> “(eval)”

Dotan, IronRuby’s console as part of ir.exe is NOT the same as IRB;
though IronRuby does ship with a “iirb” …

~js

From: [email protected]
[mailto:[email protected]] On Behalf Of Jim D.
Sent: Tuesday, January 12, 2010 1:06 PM
To: [email protected]
Subject: Re: [Ironruby-core] in ir, FILE not the same as in irb nor
jirb

[160] > iirb
irb(main):001:0> FILE
=> “(irb)”
irb(main):002:0> exit

Looks like that might have been fixed in RC1, can you try to repro
there?

JD

From: [email protected]
[mailto:[email protected]] On Behalf Of Dotan N.
Sent: Tuesday, January 12, 2010 12:50 PM
To: [email protected]
Subject: [Ironruby-core] in ir, FILE not the same as in irb nor jirb

hi all,
not sure if it matters, in both irb and jirb we get “(irb)”, however in
ir (on 0.9.2) i’m getting “(eval)”
i was just fiddling around with ir and didn’t expect this

yep. i’ve tried it in ir. thanks it seems to work correctly on iirb :slight_smile:

On Tue, Jan 12, 2010 at 11:10 PM, Jimmy S. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs