> <snip> > > 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 > > > <snip> > > 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