Message5691
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
[] |
|
Date |
User |
Action |
Args |
2010-04-13 13:49:56 | pekka.klarck | set | messageid: <1271166596.79.0.0184169573528.issue1594@psf.upfronthosting.co.za> |
2010-04-13 13:49:56 | pekka.klarck | set | recipients:
+ pekka.klarck |
2010-04-13 13:49:56 | pekka.klarck | link | issue1594 messages |
2010-04-13 13:49:55 | pekka.klarck | create | |
|