Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Turn off xtrace during printprompt4()
- X-seq: zsh-workers 11473
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Turn off xtrace during printprompt4()
- Date: Sat, 20 May 2000 15:45:17 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Need I explain why this is necessary?
Index: Src/utils.c
===================================================================
@@ -798,11 +798,13 @@
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);
}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author