summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-20 22:33:46 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-20 22:33:46 +0000
commit46108379af2fb58450b17228bd0ebbaa72431414 (patch)
treea6434c21dae35dcb8bcf0e2c33241dec14850dd5
parent53352132d0b3bffb110ff906e4ec1ac9044c9060 (diff)
downloadportage-46108379af2fb58450b17228bd0ebbaa72431414.tar.gz
portage-46108379af2fb58450b17228bd0ebbaa72431414.tar.bz2
portage-46108379af2fb58450b17228bd0ebbaa72431414.zip
Allow an empty PROMPT_COMMAND for bug #152157.
svn path=/main/trunk/; revision=4771
-rw-r--r--pym/output.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index 63f24fc22..ff40325b0 100644
--- a/pym/output.py
+++ b/pym/output.py
@@ -189,7 +189,9 @@ def xtermTitleReset():
global default_xterm_title
if default_xterm_title is None:
prompt_command = os.getenv('PROMPT_COMMAND')
- if prompt_command is not None:
+ if prompt_command == "":
+ default_xterm_title = ""
+ elif prompt_command is not None:
default_xterm_title = commands.getoutput(prompt_command)
else:
pwd = os.getenv('PWD','')