From: Luis Lavena Date: 2007-10-17T10:17:33+09:00 Subject: Re: RubyGems Beta 0.9.4.5 Eric Hodel wrote: > On Oct 13, 2007, at 12:20 , Luis Lavena wrote: >>> @#{Gem.ruby.gsub(File::SEPARATOR, File::ALT_SEPARATOR)} -x "%0" %* >> that functionality. >> >> And so, there will be reported issues on NetBeans tracker :-P > > It think Nobu is talking specifically about installed bin stubs, not > about the gem command itself. On windows platforms, RubyGems > installs both "bin_name" and "bin_name.cmd". Would this change be > acceptable then? Under WinNT (and _all_ the versions based on that kernel). slash and backslash works the same way for paths: D:\Users\Developer\code>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] D:\Users\Developer\code>c:/Other-Rubies/Ruby185-p12/bin/ruby.exe -v ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32] What specified there is add the script to the .cmd file, since he is referencing %0 (the script) and -x to run any file as Ruby. I've updated the proposed patch to fix the setup.rb and the installer generated stubs. http://rubyforge.org/tracker/index.php?func=detail&aid=14725&group_id=126&atid=577 > Also, what versions of Windows does %* work on? I see that setup.rb > is still using "%1 %2 ... %9" when it installs "gem.cmd". %* works from WinNT and later. %1..%9 are used by win9x. For the sake of compatibility I left that on the updated (-2) patch on rubyforge. Sorry my delay on answer this. Luis -- Posted via http://www.ruby-forum.com/.