From: Brian Candler Date: 2010-09-28T15:04:33+09:00 Subject: Re: passing single backslash character as commang line argument Kashyap Ivaturi wrote: > I changed the code as you suggested, but I still do not get see the > single backslash appearing in the string that gets sent to the test2.rb When I run it under Linux, I get: text: Sample Ruby '\' String Windows is broken in so many ways, I can only guess this is one of them. > Please let me know what needs to be modified to get the single backslash > in the output. I don't use Windows. You could try doubling the backslash: text.gsub!(/\\/, '\\\\\\\\') -- Posted via http://www.ruby-forum.com/.