[Rubygems-developers] improving gems bin scripts on windows

Eric Hodel drbrain at segment7.net
Mon Jul 30 14:02:20 EDT 2007

On Jul 30, 2007, at 10:44, Gordon Thiesfeld wrote:

>>> Could you write a patch for us?
> I've written the patch, and I've been using it for a few days now.  I
> think I've figured out why the batch files are used.  Everything works
> fine if you call the ruby file directly, but if you try to pipe
> something to it, it raises an exception "Bad file descriptor
> (Errno::EBADF)".  The original method of using batch files works fine
> with the pipe operator.
> I found this thread on ruby-talk[1] as well as several other threads
> for python that say this is a bug with the pipe operator in windows.
> So, I guess this isn't going to work.  Oh well, it was worth a shot.

Lame.  Thanks for investigating for us.

I've added a note to the RDoc so people will know in the future why  
we've got two scripts lying around.

Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars

More information about the Rubygems-developers mailing list