berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Ruby.exe command-line behaviour with ? and * #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ruby.exe -? 
2. Ruby.exe *.rb

What is the expected output? What do you see instead?
For (1) I would like it treated as an invalid option
For (2) I guess the code is just not yet implemented..

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.
File options.cs, method rb_w32_cmdvector

Original issue reported on code.google.com by djl_davi...@rifraf.net on 11 Sep 2007 at 12:12

GoogleCodeExporter commented 9 years ago
patch for problem 1. skip wildcard checking if the token starts with '-'.

Original comment by art...@gmail.com on 11 Sep 2007 at 2:18

Attachments:

GoogleCodeExporter commented 9 years ago
patch for both problem 1 & 2 (replace previous patch).

Original comment by art...@gmail.com on 11 Sep 2007 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
some more problems for this issues:
1. can't handle multiple options:
ex)
C:\rubydotnetcompiler>ruby -v -d -?
ruby 1.8.2 (2006-06-30) [Ruby.Net-mswin]

Unhandled Exception: Ruby.Runtime.RubyException: Could not find 
file 'C:\rubydotnetcompiler\-d'.

2. an extra newline for -v and invalid options.
C:\rubydotnetcompiler>ruby -v
ruby 1.8.2 (2006-06-30) [Ruby.Net-mswin]

  (this line is extra)
C:\rubydotnetcompiler>

3. Bad filename causes an unhandled exception.

the attached patch contains previous patch.

Original comment by art...@gmail.com on 13 Sep 2007 at 3:10

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r94

Original comment by art...@gmail.com on 16 Sep 2007 at 12:02