summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-20 15:56:03 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-20 15:56:03 +0000
commit279132a957274baf3b179845f8c0e34246f76622 (patch)
treebe5a07e7e43eb74a98b3c05ab10a0764e211fd0e
parentf97eaa45796d232fe2e860eb83c1c523ee47a6cd (diff)
downloadzsh-279132a957274baf3b179845f8c0e34246f76622.tar.gz
zsh-279132a957274baf3b179845f8c0e34246f76622.tar.xz
zsh-279132a957274baf3b179845f8c0e34246f76622.zip
11473: Turn off xtrace while printing PS4.
-rw-r--r--ChangeLog4
-rw-r--r--Src/utils.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b477a636..05a044493 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-20  Bart Schaefer  <schaefer@zsh.org>
+
+	* 11473: Src/utils.c: Turn off xtrace while printing PS4.
+
 2000-05-19  Oliver Kiddle  <opk@zsh.org>
 
 	* 11471: Completion/User/_netscape, Completion/User/_urls: do
diff --git a/Src/utils.c b/Src/utils.c
index 170254fe3..116c8089e 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -798,11 +798,13 @@ printprompt4(void)
     if (!xtrerr)
 	xtrerr = stderr;
     if (prompt4) {
-	int l;
+	int l, t = opts[XTRACE];
 	char *s = dupstring(prompt4);
 
+	opts[XTRACE] = 0;
 	unmetafy(s, &l);
 	s = unmetafy(promptexpand(metafy(s, l, META_NOALLOC), 0, NULL, NULL), &l);
+	opts[XTRACE] = t;
 
 	fprintf(xtrerr, "%s", s);
     }