From: RLMuller@... (Richard) Date: 2003-05-26T14:58:05+09:00 Subject: Re: Getting '\' to be used as the separator in Dir.getwd -- how to? > > > attr :cwd > > defines the method to read @cwd. > > However, you would be using Shell to do a Dir#getwd instead of > doing it directly. It returns forward-slash separators (for me). > > require 'shell' > puts Shell.new.pwd # -> D:/ruby/lib/ruby/1.8/shell > > > > > The default record separator is set to '/' unless replaced [...] > > The default record separator in Shell is set to global variable $/ > (which is usually newline). Nothing to do with the directory > component separator. Confusing, though. Thanks, daz. I'm going to have to cogitate this for a while. - Richard