* Re: Bug in printing of PS4 (the xtrace prompt)
@ 1999-07-20 8:48 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-07-20 8:48 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> I happened to have xtrace set while running compinit. Here's the tail of
> the output:
>
> +compdump:89> print
> +compdump:91> unfunction compdump
> +\M-^H\M-9'^H0\M-4\n@^P:92> autoload -U compdump
> +compinit:377> unfunction compinit
> +(^^]^H0\M-4\n@^P:378> autoload -U compinit
>
> Looks like it's using a garbaged string as the function name after the
> function unfunctions itself.
I think it's that easy. There is another `scriptname = ...' in init.c
for sourced files -- we shouldn't need a dupstring() there, should we?
Bye
Sven
--- os/exec.c Tue Jul 20 08:54:10 1999
+++ Src/exec.c Tue Jul 20 10:43:17 1999
@@ -2922,7 +2922,7 @@
tab = pparams;
oldscriptname = scriptname;
- scriptname = name;
+ scriptname = dupstring(name);
oldzoptind = zoptind;
zoptind = 1;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Bug in printing of PS4 (the xtrace prompt)
@ 1999-07-19 21:46 Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-07-19 21:46 UTC (permalink / raw)
To: zsh-workers
I happened to have xtrace set while running compinit. Here's the tail of
the output:
+compdump:89> print
+compdump:91> unfunction compdump
+\M-^H\M-9'^H0\M-4\n@^P:92> autoload -U compdump
+compinit:377> unfunction compinit
+(^^]^H0\M-4\n@^P:378> autoload -U compinit
Looks like it's using a garbaged string as the function name after the
function unfunctions itself.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-07-20 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-20 8:48 Bug in printing of PS4 (the xtrace prompt) Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
1999-07-19 21:46 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).