Message5680

Author pekka.klarck
Recipients pekka.klarck
Date 2010-04-12.14:25:48
SpamBayes Score 2.3860215e-05
Marked as misclassified No
Message-id <1271082350.12.0.68966880089.issue1594@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-12 14:25:50pekka.klarcksetrecipients: + pekka.klarck
2010-04-12 14:25:50pekka.klarcksetmessageid: <1271082350.12.0.68966880089.issue1594@psf.upfronthosting.co.za>
2010-04-12 14:25:49pekka.klarcklinkissue1594 messages
2010-04-12 14:25:48pekka.klarckcreate