Message5691

Author pekka.klarck
Recipients pekka.klarck
Date 2010-04-13.13:49:55
SpamBayes Score 3.8169966e-07
Marked as misclassified No
Message-id <1271166596.79.0.0184169573528.issue1594@psf.upfronthosting.co.za>
In-reply-to
Content
I investigated this problem a bit more and noticed that the bug is in the jython.bat script and thus affects only Windows. An easy way to see that the batch file is to blame is running the original examples with --print option:

C:\path>jython --print  -c "import sys; print sys.argv[1:]" x\*.txt
"C:\Program Files\Java\jre1.6.0_07\bin\java"  -Xmx512m -Xss1152k  -Dpython.home="C:\jython2.5.1" -Dpython.executable="c:\jython2.5.1\jython.bat" -classpath "C:\jython2.5.1\jython.jar" org.python.util.jython   -c "import sys; print sys.
argv[1:]" x\f2.txt

I also noticed that when the pattern matches no file, also the arguments after the pattern disappear:

C:\path>jython -c "import sys; print sys.argv[1:]" *.none these disappear too
[]
History
Date User Action Args
2010-04-13 13:49:56pekka.klarcksetmessageid: <1271166596.79.0.0184169573528.issue1594@psf.upfronthosting.co.za>
2010-04-13 13:49:56pekka.klarcksetrecipients: + pekka.klarck
2010-04-13 13:49:56pekka.klarcklinkissue1594 messages
2010-04-13 13:49:55pekka.klarckcreate