Message5680
1) When a glob pattern like *.txt is used on Windows and it matches existing files/dirs, Jython only gets the last matching item:
C:\path>dir /B x
f1.txt
f2.txt
C:\path>python26 -c "import sys; print sys.argv[1:]" x\*.txt
['x\\*.txt']
C:\path>jython25 -c "import sys; print sys.argv[1:]" x\*.txt
['x\\f2.txt']
This problem probably doesn't appear on Unixes because there the shell expands patterns when they match before the command is actually called.
2) If a pattern matches no files, Jython gets nothing:
C:\path>python26 -c "import sys; print sys.argv[1:]" *.none
['*.none']
C:\path>jython25 -c "import sys; print sys.argv[1:]" *.none
[]
I assume this problem appears also on Unixes. |
|
Date |
User |
Action |
Args |
2010-04-12 14:25:50 | pekka.klarck | set | recipients:
+ pekka.klarck |
2010-04-12 14:25:50 | pekka.klarck | set | messageid: <1271082350.12.0.68966880089.issue1594@psf.upfronthosting.co.za> |
2010-04-12 14:25:49 | pekka.klarck | link | issue1594 messages |
2010-04-12 14:25:48 | pekka.klarck | create | |
|