ts wrote:

>>>>>>"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
>
>
>  
>
You're right...I must have had a typo when i was trying earlier...but it 
does work when everything is typed in correctly ;) Thanks Guy,

Zach