* history
@ 1996-07-09 3:50 Clint Adams
1996-07-09 17:03 ` history Zoltan Hidvegi
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 1996-07-09 3:50 UTC (permalink / raw)
To: zsh-workers
zsh 1% zsh
zsh/2 1% !po<TAB><Ctrl-U>pop<TAB>zsh: 543 segmentation fault zsh
zsh 2 [139 SEGV] % !po<ENTER>
zsh: event not found: po
zsh 2 % pop<TAB>
==
On the final line, pop is expanded to popclient successfully.
Any ideas?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: history
1996-07-09 3:50 history Clint Adams
@ 1996-07-09 17:03 ` Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1996-07-09 17:03 UTC (permalink / raw)
To: Clint Adams; +Cc: zsh-workers
> zsh 1% zsh
>
> zsh/2 1% !po<TAB><Ctrl-U>pop<TAB>zsh: 543 segmentation fault zsh
>
> zsh 2 [139 SEGV] % !po<ENTER>
> zsh: event not found: po
Completing words containing history bangchars is buggy. The patch below
should fix that.
Zoltan
*** Src/zle_tricky.c 1996/07/09 13:37:36 2.57
--- Src/zle_tricky.c 1996/07/09 16:34:32
***************
*** 930,935 ****
--- 930,936 ----
lexsave();
inpush(dupstrspace((char *) linptr), 0);
strinbeg();
+ stophist = 2;
i = tt0 = cp = rd = 0;
/* This loop is possibly the wrong way to do this. It goes through *
***************
*** 1147,1166 ****
}
chuck(p--);
}
- if (unset(NOBANGHIST)) {
- /* In qword bangchars (normally `!') are quoted if nobanghist is *
- * unset. This code is not in line with the current bang quoting *
- * rules. We really need to get those sorted out. */
- q = tt = ncalloc(2 * strlen(qword) + 1);
- for (p = qword; *p; p++) {
- if (*p == (char)bangchar)
- *q++ = '\\';
- *q++ = *p;
- }
- *q = '\0';
- zsfree(qword);
- qword = ztrdup(tt);
- }
} LASTALLOC;
lexrestore();
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-09 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-09 3:50 history Clint Adams
1996-07-09 17:03 ` history Zoltan Hidvegi
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).