about summary refs log tree commit diff
path: root/Src
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 /Src
parentf97eaa45796d232fe2e860eb83c1c523ee47a6cd (diff)
downloadzsh-279132a957274baf3b179845f8c0e34246f76622.tar.gz
zsh-279132a957274baf3b179845f8c0e34246f76622.tar.xz
zsh-279132a957274baf3b179845f8c0e34246f76622.zip
11473: Turn off xtrace while printing PS4.
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c4
1 files changed, 3 insertions, 1 deletions
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);
     }