Message9836
The attached patch seems to do it for me. There were two issues; the first is that InteractiveConsole.interact() always resets the prompts, even if it they had previously been set to empty, so we need to call `_interact` if we're not interactive instead. Second, like you said 'python.launcher.tty' wasn't always being respected as authoritative.
$ dist/bin/jython
Jython 2.7rc2+ (default:5064a5c5b1a3+, Apr 14 2015, 09:32:56)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_40
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
$ dist/bin/jython.py
Jython 2.7rc2+ (default:5064a5c5b1a3+, Apr 14 2015, 09:32:56)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_40
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
$ echo 'print 1' | dist/bin/jython.py
1
$ echo 'print 1' | dist/bin/jython
1
$
(This is my first time trying to suggest a patch here, and I haven't spent any time trying to look back at previous bug reports to see how patches are usually attached so I probably did it wrong. I just wanted to get this up there quickly. I'll take a look to see if I can find better conventions.) |
|
Date |
User |
Action |
Args |
2015-04-14 14:41:55 | jmadden | set | messageid: <1429022515.02.0.994394096469.issue2325@psf.upfronthosting.co.za> |
2015-04-14 14:41:55 | jmadden | set | recipients:
+ jmadden, zyasoft |
2015-04-14 14:41:54 | jmadden | link | issue2325 messages |
2015-04-14 14:41:54 | jmadden | create | |
|