Message12121

Author jeff.allen
Recipients jeff.allen
Date 2018-09-25.07:22:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537860127.85.0.545547206417.issue2707@psf.upfronthosting.co.za>
In-reply-to
Content
jython.py appears broken on Linux by the shebang line:

#!/usr/bin/env python2.7 -E

This doesn't work because a shebang is not processed like a shell command (see https://unix.stackexchange.com/questions/63979/shebang-line-with-usr-bin-env-command-argument-fails-on-linux). env receives everything after the space as one argument and you get the message that it cannot find the file "python2.7 -E".

An option -S (--split-string) is documented that addresses the problem, but it doesn't work on my Linux system. I could maybe install a later env, but then it will fail for anyone who hasn't done that with "invalid option -- 'S'".

This mostly does not show in a development environment because dist/bin/jython means the shell script version, but it fails in tests that explicitly ask for jython.py (test_jython_launcher).
History
Date User Action Args
2018-09-25 07:22:07jeff.allensetrecipients: + jeff.allen
2018-09-25 07:22:07jeff.allensetmessageid: <1537860127.85.0.545547206417.issue2707@psf.upfronthosting.co.za>
2018-09-25 07:22:07jeff.allenlinkissue2707 messages
2018-09-25 07:22:06jeff.allencreate