1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

11473: Turn off xtrace while printing PS4.

This commit is contained in:
Bart Schaefer 2000-05-20 15:56:03 +00:00
parent f97eaa4579
commit 279132a957
2 changed files with 7 additions and 1 deletions

@ -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

@ -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);
}