zsh-workers
 help / color / mirror / code / Atom feed
* Crash playing with new completion stuff; bug with Functions/Completion/init
@ 1999-02-14 21:14 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1999-02-14 21:14 UTC (permalink / raw)
  To: zsh-workers

I managed to cause zsh to deref a null `aval' in paramsubst() with `plan9'
(that's rcexpandparam) true.  I have no idea how rcexpandparam became set,
as I don't normally use it, and I started from zsh -f and then sourced the
Functions/Completion/init file.

I was using this binding at the time (though I did have the sample stuff
loaded):

__test() {
    local i
    for i in CONTEXT COMMAND IPREFIX PREFIX SUFFIX CURRENT argv;
	compadd "$(typeset $i)"
}
zle -C test-complete complete-word __test
bindkey \^I test-complete

And I was completing the string

    ls "a

I pressed TAB once, the 'a' disappeared (as expected); I pressed it again,
and boom.  I had done some other stuff first, including sourcing init many
times before figuring out that it doesn't do anything if you don't have
extendedglob set (which zsh -f does not).

This is all pws-8, of course.

-- 
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:[~1999-02-14 21:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-14 21:14 Crash playing with new completion stuff; bug with Functions/Completion/init 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).