From: Zac Medico Date: Sat, 9 Jun 2007 03:51:51 +0000 (-0000) Subject: Only execute $PROMPT_COMMAND when appropriate. (trunk r6772) X-Git-Tag: v2.1.2.10~2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1c8002bcfb7d60398b491b1e49327de334402761;p=portage.git Only execute $PROMPT_COMMAND when appropriate. (trunk r6772) svn path=/main/branches/2.1.2/; revision=6773 --- diff --git a/pym/output.py b/pym/output.py index 2327c91aa..bd9c474e6 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: - os.system(prompt_command) + if dotitles and "TERM" in os.environ and sys.stderr.isatty(): + os.system(prompt_command) return else: pwd = os.getenv('PWD','')