summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-08 23:10:46 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-08 23:10:46 +0000
commit235bf5023359763690614ae631448db0b36c594c (patch)
tree69c7d1326939eec563b36f13373ca9d6dea98905
parent9f78cce938af52c3a978a5b76a952c7e8c11fd4d (diff)
downloadportage-235bf5023359763690614ae631448db0b36c594c.tar.gz
portage-235bf5023359763690614ae631448db0b36c594c.tar.bz2
portage-235bf5023359763690614ae631448db0b36c594c.zip
For bug #139383, in xtermTitleReset() use os.system() instead of commands.getoutput() since the latter puts too much restriction on what $PROMPT_COMMAND may contain.
svn path=/main/trunk/; revision=6768
-rw-r--r--pym/portage/output.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index b4877b30d..cd140f016 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -194,7 +194,8 @@ def xtermTitleReset():
if prompt_command == "":
default_xterm_title = ""
elif prompt_command is not None:
- default_xterm_title = commands.getoutput(prompt_command)
+ os.system(prompt_command)
+ return
else:
pwd = os.getenv('PWD','')
home = os.getenv('HOME', '')