Hi,
The Shell.rmdir method in shell.rb doesn't work, because it passes the
wrong parameter to the expand_path method:
Exception `TypeError' at /usr/lib/ruby/1.8/shell.rb:120 - cannot convert Array into String
Exception `TypeError' at /usr/lib/ruby/1.8/shell/command-processor.rb:515 - cannot convert Array into String
/usr/lib/ruby/1.8/shell.rb:120:in `expand_path': cannot convert Array into String (TypeError)
from /usr/lib/ruby/1.8/shell.rb:120:in `expand_path'
from /usr/lib/ruby/1.8/shell/command-processor.rb:71:in `expand_path'
from /usr/lib/ruby/1.8/shell/command-processor.rb:208:in `rmdir'
from /usr/lib/ruby/1.8/shell/command-processor.rb:207:in `each'
from /usr/lib/ruby/1.8/shell/command-processor.rb:207:in `rmdir'
from /usr/lib/ruby/1.8/shell/command-processor.rb:511:in `__send__'
from /usr/lib/ruby/1.8/shell/command-processor.rb:511:in `rmdir'
from ./rush:55:in `send'
from ./rush:55
from ./rush:33:in `loop'
from ./rush:63
The one-line fix is attached to this message.
Ian
foo (333 Bytes)
···
--
Ian Macdonald | "God is a comedian playing to an audience
System Administrator | too afraid to laugh." - Voltaire
ian@caliban.org |
http://www.caliban.org |
>