mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-27 02:01:09 +01:00
11473: Turn off xtrace while printing PS4.
This commit is contained in:
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue