Title: jython.bat vs jython - difference in argument handling
Type: behaviour Severity: normal
Components: Versions: Jython 2.7
Milestone: Jython 2.7.0
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, rspielmann, zyasoft
Priority: normal Keywords:

Created on 2011-02-26.22:30:14 by rspielmann, last changed 2016-01-11.04:46:44 by zyasoft.

msg6410 (view) Author: Robert Spielmann (rspielmann) Date: 2011-02-26.22:30:13
Hi there,

I discussed with Pekka recently, and it turns out the problem is with the Jython launcher scripts.

On Windows, arguments passed to jython.bat are parsed and split into several categories like JVM options etc. Afterwards, only those arguments that were not put into a certain context are passed to the desired Python script.

On Linux, the Jython launcher script also performs this kind of argument parsing, but when launching the JVM, it passes ALL arguments to the Python script as "$@".

This leads to cases where the Python script being executed complains about an unknown option or argument, like in the case of the Robot Framework, where "-J" options are not recognized by the framework, thus leading to an error message if the framework is started with Jython on linux. On Windows, however, it's possible to use -J options and they never reach the Python script.

It would be nice to have this inconsistency fixed, in order to have identical behaviour in both environments.
msg10629 (view) Author: Jim Baker (zyasoft) Date: 2016-01-11.04:46:44
jython.bat is dead as of 2.7.0, replaced by the wrapper executable jython.exe, so closing out
Date User Action Args
2016-01-11 04:46:44zyasoftsetstatus: open -> closed
versions: + Jython 2.7, - Jython 2.5
nosy: + zyasoft
messages: + msg10629
milestone: Jython 2.7.0
resolution: out of date
2013-02-25 18:30:37fwierzbickisetpriority: normal
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.1
2011-02-26 22:30:14rspielmanncreate