From 279132a957274baf3b179845f8c0e34246f76622 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 20 May 2000 15:56:03 +0000 Subject: 11473: Turn off xtrace while printing PS4. --- Src/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src/utils.c') 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); } -- cgit 1.4.1