From: Hans Mackowiak Date: 2013-02-14T20:58:05+09:00 Subject: Re: Confusion with Ruby command line options its because #{$/} uses to_s but you need the inspected stuff #{$/.inspect} ruby -00 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' R R here is: "\n\n" ruby -0777 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' E E here is: nil ruby -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Z Z here is: "\n" -- Posted via http://www.ruby-forum.com/.