From: Emmanuel Touzery Date: 2002-12-07T00:11:18+09:00 Subject: Re: File::SEPARATOR nobu.nokada@softhome.net wrote: >Hi, > >At Fri, 6 Dec 2002 23:35:01 +0900, >Emmanuel Touzery wrote: > > >> I would like to emphasize again that in windows 2000 using >> ruby 1.67-4 >>and 1.67-7 downloaded from http://rubyinstaller.sourceforge.net/, I >>get "/" as a file separator. I already mentionned this in >>http://marc.theaimsgroup.com/?l=ruby-talk&m=103884227229307&w=2, but >>there was no reaction. >> >> > >Yes. In ruby, "/" is used as a file separator for portability >reason, and File::ALT_SEPARATOR is set on some platforms. > > thank you, now I'm reassured :O) the doc in the pickaxe book is: |SEPARATOR| Character that separates directory components in a filename (such as ``\'' or ``/''). I gather that this doc is wrong? File::SEPARATOR would always be "/", in all platforms? (in which case it's not really useful). yes, and Dir.chdir("a/b") does work under windows, so it's good, and i'm wondering even more when should I use File::SEPARATOR? much reassured, emmanuel -- "If someone breaks into my house and steals my CDs, who calls the cops, me or the music industry? If it's me, then that's my property." --Ruben Safir