[Patches] [ python-Patches-851459 ] Argument passing from
/usr/bin/idle2.3 to idle.py
SourceForge.net
noreply at sourceforge.net
Wed Dec 22 19:15:25 CET 2004
Patches item #851459, was opened at 2003-11-30 01:27
Message generated for change (Comment added) made by kbk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=851459&group_id=5470
Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Humberto Diógenes (virtualspirit)
Assigned to: Sean Reifschneider (jafo)
Summary: Argument passing from /usr/bin/idle2.3 to idle.py
Initial Comment:
/usr/bin/idle2.3 wrapper (from the 2.3.2-1pydotorg rpm) ignores
command-line arguments when calling idle.py. Fixed only by adding
"$*" to the script.
----------------------------------------------------------------------
>Comment By: Kurt B. Kaiser (kbk)
Date: 2004-12-22 13:15
Message:
Logged In: YES
user_id=149084
This really ought to get into release24-maint and probably
release23-maint if you think anyone will ever build an rpm
from 2.3.5 (which is due out soon).
----------------------------------------------------------------------
Comment By: Sean Reifschneider (jafo)
Date: 2004-12-20 21:25
Message:
Logged In: YES
user_id=81797
I went ahead and turned this into Python code and called
"execvp", passing the command arguments onto the idle call.
This way there are no worries about how the shell handles
$* expansion. The current CVS version results in something
looking like:
#!/usr/bin/env python2.4
import os, sys
os.execvp("/usr/bin/python2.4", ["/usr/bin/python2.4",
"/usr/lib/python2.4/idlelib/idle.py"] + sys.argv[1:])
print "Failed to exec Idle"
sys.exit(1)
(assuming default build settings)
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2004-12-20 15:53
Message:
Logged In: YES
user_id=149084
Appears to be an issue with the Tools section of
..../Misc/RPM/python-2.4.spec
Backport to release23-maint
Assigning to Sean Reifschneider
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=851459&group_id=5470
More information about the Patches
mailing list