Bug#609965: Does not parse command line arguments correctly

Chris Lamb lamby at debian.org
Fri Jan 14 13:35:58 UTC 2011


Package: rhino
Severity: normal
Version: 1.7R2-4

 $ cat testcase.js
 for (var i = 0; i < arguments.length; ++i) {
   print("arguments[" + i + "] = " + arguments[i]);
 }

 $ rhino testcase.js "a b" c "d e"
 arguments[0] = a
 arguments[1] = b
 arguments[2] = c
 arguments[3] = d
 arguments[4] = e

Expected:

 $ rhino testcase.js "a b" c "d e"
 arguments[0] = a b
 arguments[1] = c
 arguments[2] = d e


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20110114/f3b71398/attachment-0001.pgp>


More information about the pkg-java-maintainers mailing list