"*" in runtime argument

Hi,

I’m having trouble passing a simple sql statement(String) to my script
through runtime argument ;
c:\work>jruby test.rb “select * from sample;”

JRuby 1.1.1 will return “select zzz.txt from sample;” as a result of: p
ARGV[0]

Seems like “*” is replaced with a file name in a current directory
(“zzz.txt” is a name of a file exists in c:\work) … Is this a normal
behavior?

Just for reference, here’s results on JRuby1.0.1 and Ruby-1.8.6 ;

Ruby-1.8.6: “select * from friends;”
JRuby1.0.1: nil

(Windows XP pro., / Java SE 6)

Thank you in advance for your help.

Kana

On Tue, May 13, 2008 at 8:34 PM, Kana [email protected] wrote:

Seems like “*” is replaced with a file name in a current directory
(“zzz.txt” is a name of a file exists in c:\work) … Is this a normal
behavior?

It’s a bug, an artifact of JRuby’s crufty launcher batch files. Can
you file an issue on this to http://jira.codehaus.org/browse/JRUBY?
Thanks.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Nick,

Thanks for your reply. I did filed this issue on:
http://jira.codehaus.org/browse/JRUBY-2517


Kana

ARGV[0]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs