In IRB if I type the following:
"te/st".gsub('/','\')
into irb, IRB screws up.
but if I type
File.expand_path($0).gsub('/','\\')
I get te\\st. what gives?? how do I get ruby to come up with te\st?

what I am trying to do is this:
File.expand_path($0).gsub('/','\') because with ruby in windows it uses
a / instead of a \ for path names which is screwing my pathnames up..
any suggestions???

-- 
Posted via http://www.ruby-forum.com/.