Bug#609965: Does not parse command line arguments correctly

2011-01-16 Thread Chris Lamb
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 Ex

Bug#609965: Does not parse command line arguments correctly

2011-01-16 Thread Chris Lamb
tags 609965 + patch thanks Patch attached. Thanks to Chris West. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org `- diff -urNd rhino-1.7R2.orig/debian/bin/rhino rhino-1.7R2/debian/bin/rhino --- rhino-1.7R2.orig/debian/bin/rhino 2011-01-14 13:57:18

Bug#609965: Does not parse command line arguments correctly

2011-01-16 Thread Chris Lamb
The first argument is also parsed incorrectly: $ touch testcase.js $ rhino testcase $ touch "test case.js" $ rhino "test case.js" js: Couldn't read source file "test: test (No such file or directory)". Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.o