Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created May 20, 2009 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BanzaiMan/114789 to your computer and use it in GitHub Desktop.
Save BanzaiMan/114789 to your computer and use it in GitHub Desktop.
surfboard:jruby asari$ bin/jruby -ve 'eval ":\"\\0\" "'
jruby 1.3.0RC2 (ruby 1.8.6p287) (2009-05-20 7e3114e) (Java HotSpot(TM) Client VM 1.5.0_16) [i386-java]
(eval):1 warning: Useless use of a literal in void context.
(eval):1: symbol cannot contain '\0' (SyntaxError)
surfboard:jruby asari$ ruby -ve 'eval ":\"\\0\" "'
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
-e:1: (eval):1: compile error (SyntaxError)
(eval):1: symbol cannot contain '\0'
(eval):1: empty symbol literal
:"\0"
^
surfboard:jruby asari$ ruby19 -ve 'eval ":\"\\0\" "'
ruby 1.9.2dev (2009-05-20 trunk 23492) [i386-darwin9.7.0]
-e:1:in `eval': (eval):1: symbol cannot contain '\0' (SyntaxError)
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment