Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.5.6
-
None
-
Windows XP
Description
Groovy does weird things with command line arguments containing *. Makes it very difficult to pass in things like file specs, ant specs and regex expresssions!!! A simple program that prints out the length of the args parameter passed into main procedure - a few are correct but most are wrong:
>groovy fail test args length: 1 >groovy fail * args length: 3 >groovy fail ** args length: 0 >groovy fail "**" args length: 0 >groovy fail "test" " *" args length: 2 >groovy fail "test" "*" args length: 1 >groovy fail "test *" args length: 1 >groovy fail "*test*" args length: 0 >groovy fail "*test*" args length: 0 >groovy fail " *test*" args length: 1