summaryrefslogtreecommitdiffstats
path: root/pym/output.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-08 23:11:10 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-08 23:11:10 +0000
commit6de83fd4fba897414435165dc39bf40a40950bab (patch)
tree8f68be846f88f8f241bfe079ecf62aa00f9b66aa /pym/output.py
parentffdedfe3824e711da157ebc813982e912cbb82a0 (diff)
downloadportage-6de83fd4fba897414435165dc39bf40a40950bab.tar.gz
portage-6de83fd4fba897414435165dc39bf40a40950bab.tar.bz2
portage-6de83fd4fba897414435165dc39bf40a40950bab.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. (trunk r6768)
svn path=/main/branches/2.1.2/; revision=6769
Diffstat (limited to 'pym/output.py')
-rw-r--r--pym/output.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index 314674135..2327c91aa 100644
--- a/pym/output.py
+++ b/pym/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', '')