>>>>> "Z" == Zach Dennis <zdennis / mktec.com> writes:

Z> d = nil
Z> dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) )

 I don't have this problem


svg% ruby -e 'd=nil; dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ); p dir'
nil
svg% 

svg% ruby -e 'd=nil; dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ); p dir' ruby
#<Dir:0x4009a13c>
svg% 



Guy Decoux