From: Zac Medico Date: Fri, 8 Jun 2007 23:11:10 +0000 (-0000) Subject: For bug #139383, in xtermTitleReset() use os.system() instead of commands.getoutput... X-Git-Tag: v2.1.2.10~4 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6de83fd4fba897414435165dc39bf40a40950bab;p=portage.git 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 --- 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', '')