* PATCH: Turn off xtrace during printprompt4()
@ 2000-05-20 15:45 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2000-05-20 15:45 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-20 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-20 15:45 PATCH: Turn off xtrace during printprompt4() Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).