R
Rick DeNatale
I can't figure out what's happening here:
shadowfax:~ rick$ ruby -ve'p "a\b\c"'
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.2]
-e:1: unterminated string meets end of file
shadowfax:~ rick$ ruby -e'p "a\b\\c"'
"a\b\\c"
shadowfax:~ rick$ ruby -e'puts "a\b\\c"'
\c
shadowfax:~ rick$
What's up with \c in a string literal?
shadowfax:~ rick$ ruby -ve'p "a\b\c"'
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.2]
-e:1: unterminated string meets end of file
shadowfax:~ rick$ ruby -e'p "a\b\\c"'
"a\b\\c"
shadowfax:~ rick$ ruby -e'puts "a\b\\c"'
\c
shadowfax:~ rick$
What's up with \c in a string literal?