Issue1514

classification
Title: [Windows] Arguments missing from command-line
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, jaraco, otmarhumbel, pjenvey, zyasoft
Priority: normal Keywords:

Created on 2009-12-03.21:55:08 by jaraco, last changed 2015-03-14.01:18:21 by jaraco.

Messages
msg5342 (view) Author: Jason R. Coombs (jaraco) Date: 2009-12-03.21:55:08
Jython seems to be losing some command-line arguments, such as the
question mark. I'm using Windows 7. The problem occurs under Windows
Powershell as well as CMD.exe.

PS C:\> jython -V
Jython 2.5.1
PS C:\> jython -c "import sys; print sys.argv" "0 15 10 ? * 6#3,4#3"
['-c', '0 15 10 ']

It works as expected on CPython 2.6.4

PS C:\> python -c "import sys; print sys.argv" "0 15 10 ? * 6#3,4#3"
['-c', '0 15 10 ? * 6#3,4#3']
msg5343 (view) Author: Philip Jenvey (pjenvey) Date: 2009-12-03.22:10:47
This is most likely the same problem as #1356, in that Windows .bat files 
(and our .bat based argv handling) have argv parsing quirks compared to 
native executables. Fixing #1491 is the ideal solution
msg9609 (view) Author: Jim Baker (zyasoft) Date: 2015-03-10.18:32:46
Fixed as of https://hg.python.org/jython/rev/5cda1a50ecf0

#1491 was finally fixed - we now have a jython.exe - which made this work as desired
msg9650 (view) Author: Jason R. Coombs (jaraco) Date: 2015-03-14.01:18:21
Excellent. Thanks!
History
Date User Action Args
2015-03-14 01:18:21jaracosetmessages: + msg9650
2015-03-10 18:32:59zyasoftsetstatus: open -> closed
resolution: fixed
versions: + Jython 2.7, - Jython 2.5
2015-03-10 18:32:47zyasoftsetnosy: + zyasoft
messages: + msg9609
2013-02-20 03:07:51fwierzbickisetpriority: normal
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.1
2009-12-03 22:10:47pjenveysetnosy: + pjenvey, otmarhumbel
messages: + msg5343
title: Arguments missing from command-line -> [Windows] Arguments missing from command-line
2009-12-03 21:55:08jaracocreate