From: Luis Lavena Date: 2007-10-17T17:33:55+09:00 Subject: Re: RubyGems Beta 0.9.4.5 Dirk Traulsen wrote: > Am 17 Oct 2007 um 10:17 hat Luis Lavena geschrieben: > >> Under WinNT (and _all_ the versions based on that kernel). slash and >> backslash works the same way for paths: > > This is not completely true: > > ---------------------------------------------------------------- > C:\Dokume~1\All Users> > > Microsoft Windows XP [Version 5.1.2600] > > C:\Dokume~1\All Users>type Dokumente\__Neues\Ruby\_slashtest.rb > 4.times {puts "Hi! I'm running!"} > > C:\Dokume~1\All Users>Dokumente\__Neues\Ruby\_slashtest.rb > Hi! I'm running! > Hi! I'm running! > Hi! I'm running! > Hi! I'm running! > > C:\Dokume~1\All Users>Dokumente/__Neues/Ruby/_slashtest.rb > Der Befehl "Dokumente" ist entweder falsch geschrieben oder > konnte nicht gefunden werden. > # TRANSLATION: The command 'Dokumente' is misspelled or > # wasn't found. > > C:\Dokume~1\All Users>"Dokumente/__Neues/Ruby/_slashtest.rb" > Hi! I'm running! > Hi! I'm running! > Hi! I'm running! > Hi! I'm running! > ---------------------------------------------------------------- > You're mixing relative paths with full paths. Gem.ruby return the full (Drive + Path + Interpreter.exe) of the ruby executable. In the script, the command is already quoted: @"#{Gem.ruby}" So there is no need to #gsub the path separators. Luis -- Posted via http://www.ruby-forum.com/.