From: Chris Gehlker Date: 2002-02-27T02:51:28+09:00 Subject: Problem with "-r" command line argument Well, I'm having one more problem with RubyStudio. I implemented a drawer to save arguments and they all work *except* for -r. If I put anything in the -r textbox, Ruby says "0: No such file to load -- (LoadError) I put the following debug code in RubyStudio: count = [theArguments count]; for (index = 0; index < count; index++) NSLog(@"index: %d string: %@", index, [theArguments objectAtIndex:index]); [myTask setArguments:theArguments]; And for a simple case where I only have -w and - r turned on I get: 2002-02-26 10:39:21.214 RubyStudio[919] index: 0 string: -w 2002-02-26 10:39:21.215 RubyStudio[919] index: 1 string: -r osx/cocoa 2002-02-26 10:39:21.215 RubyStudio[919] index: 2 string: /tmp/Prog.rb Which looks ok to me. Other clues are: Quoting doesn't seem to matter. -r works from the shell which eats the quotes anyway. ENV is different in RubyStudio than in the shell but I don't see any important difference. The other command line arguments that take a file path work. It's just -r that's troublesome. -- There is, nevertheless, a certain respect and a general duty of humanity that ties us, not only to beasts that have life and sense, but even to trees and plants. -Michel de Montaigne, essayist (1533-1592)