I can't believe I am having to stoop to asking such a stupid
question!

I want a string that I am sending out to launch a process on windows.
The string has to look like this:

myapp --actx="\\.\DISPLAY3"

I cannot figure out how to get this into a string variable in ruby!

> display = "\\.\DISPLAY3"
=> "\\.DISPLAY3"
>> display.inspect
=> "\"\\\\.DISPLAY3\""

>> display = "\\.\\DISPLAY3"
=> "\\.\\DISPLAY3"
>> display.inspect
=> "\"\\\\.\\\\DISPLAY3\""

How can I get a single slash into a string?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to