Weird irb experience

E

Eric Hodel

So, I was hacking on Ruport at work tonight.

And irb broke my heart:
http://www.newhavenrubyists.org/blogs/tiberius/?p=3D6

Anyone have an idea what the hell heart:0 is?

Probably some garbage like \342\231\245 that got interpreted as a =20
UTF-8 string.

$ cat heart.rb
def =E2=99=A5(name)
puts "I =E2=99=A5 you, #{name}!"
end

=E2=99=A5 ARGV.shift

$ ruby -Ku heart.rb Ruby
I =E2=99=A5 you, Ruby!

--=20
Eric Hodel - (e-mail address removed) - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
 
G

Gregory Brown

Gregory said:
Anyone have an idea what the hell heart:0 is?

Well, thank's all for your insight. The moral of the story is that one
should never use cmd.exe ;)

Hope that doesn't start a flamewar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,184
Messages
2,570,979
Members
47,579
Latest member
CharaS3188

Latest Threads

Top