This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_extPart_001_01C12FC0.6F671F20
Content-Type: text/plain

> -----Original Message-----
> From: Christophe Broult 
[...]
> 
> cd l:/
> ruby L:/tmp/foo.rb
> ~/bin
> /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby/1.6/i386-cygwin
> /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby/1.6
> /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby
> /cygdrive/d/cbroult-softs/ruby/lib/ruby/1.6/i386-cygwin
> /cygdrive/d/cbroult-softs/ruby/lib/ruby/1.6
> .
> L:/tmp
> 
> L:/tmp/foo.rb:6:in `require': No such file to load -- bar (LoadError)
> 	from L:/tmp/foo.rb:6
> 
> # foo.rb
> $: << File.dirname($0)
> 
> puts $:.join("\n")
> puts
> 
> require 'bar'
> 
> # end foo.rb
> 
> # bar.rb
> puts "#{$0} loaded"
> 
> # end bar.rb
> 
> Note that if I replace "ruby L:/tmp/foo.rb" with "ruby 
> ~/tmp/foo.rb" this is working because my HOME var is set
> to "L:/". However I have a Ruby program on let's say D: this 
> is not going to work. 

(replying to my message)

using "ruby /cygdrive/l/tmp/foo.rb" works.

Christophe

------_extPart_001_01C12FC0.6F671F20
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV
ontent-Type" CONTENText/html; charset-ASCII"> <META NAMEenerator" CONTENTS Exchange Server version 5.5.2653.12"> <TITLE>RE: cygwin and win32 interaction (RE: [ruby-talk:20200] Re: Bug in require?)</TITLE> </HEAD> <BODY> <P><FONT SIZE &gt; -----Original Message-----</FONT> <BR><FONT SIZE &gt; From: Christophe Broult </FONT> <BR><FONT SIZE [...]</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; cd l:/</FONT> <BR><FONT SIZE &gt; ruby L:/tmp/foo.rb</FONT> <BR><FONT SIZE &gt; ~/bin</FONT> <BR><FONT SIZE &gt; /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby/1.6/i386-cygwin</FONT> <BR><FONT SIZE &gt; /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby/1.6</FONT> <BR><FONT SIZE &gt; /cygdrive/d/cbroult-softs/ruby/lib/ruby/site_ruby</FONT> <BR><FONT SIZE &gt; /cygdrive/d/cbroult-softs/ruby/lib/ruby/1.6/i386-cygwin</FONT> <BR><FONT SIZE &gt; /cygdrive/d/cbroult-softs/ruby/lib/ruby/1.6</FONT> <BR><FONT SIZE &gt; .</FONT> <BR><FONT SIZE &gt; L:/tmp</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; L:/tmp/foo.rb:6:in `require': No such file to load -- bar (LoadError)</FONT> <BR><FONT SIZE &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from L:/tmp/foo.rb:6</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; # foo.rb</FONT> <BR><FONT SIZE &gt; $: &lt;&lt; File.dirname($0)</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; puts $:.join(&quot;\n&quot;)</FONT> <BR><FONT SIZE &gt; puts</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; require 'bar'</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; # end foo.rb</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; # bar.rb</FONT> <BR><FONT SIZE &gt; puts &quot;#{$0} loaded&quot;</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; # end bar.rb</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; Note that if I replace &quot;ruby L:/tmp/foo.rb&quot; with &quot;ruby </FONT> <BR><FONT SIZE &gt; ~/tmp/foo.rb&quot; this is working because my HOME var is set</FONT> <BR><FONT SIZE &gt; to &quot;L:/&quot;. However I have a Ruby program on let's say D: this </FONT> <BR><FONT SIZE &gt; is not going to work. </FONT> </P> <P><FONT SIZE (replying to my message)</FONT> </P> <P><FONT SIZE using &quot;ruby /cygdrive/l/tmp/foo.rb&quot; works.</FONT> </P> <P><FONT SIZE Christophe</FONT> </P> </BODY> </HTML> ------_extPart_001_01C12FC0.6F671F20--