Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
BUG: using z parameter expansion flag in a completion function
- X-seq: zsh-workers 11521
- From: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: BUG: using z parameter expansion flag in a completion function
- Date: Mon, 22 May 2000 20:13:03 -0700 (PDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
There seems to be a bug when using the z parameter expansion flag in
a completion function:
host% bindkey -e; autoload -U compinit; compinit -D
host% _tst () { compadd -- ${(z)history[1]} }
host% compdef _tst tst
host% tst a<TAB>
Generates many of these error messages:
BUG: attempt to free storage at invalid address
Here's the stack trace from the first error:
#0 zfree (p=0x18c2f0, sz=0) at mem.c:1066
#1 0x75f84 in free (p=0x18c2f0) at mem.c:1135
#2 0x65630 in lexrestore () at lex.c:292
#3 0x130be0 in docomplete (lst=0) at zle_tricky.c:780
#4 0x12e6fc in expandorcomplete (args=0x167bd8) at zle_tricky.c:287
#5 0x12e120 in completecall (args=0x167bd8) at zle_tricky.c:181
#6 0x11e86c in execzlefunc (func=0x165b94, args=0x167bd8) at zle_main.c:645
#7 0x11e3a0 in zleread (lp=0x174da0 "%m%# ", rp=0x0, flags=3)
at zle_main.c:564
#8 0x5e2e8 in inputline () at input.c:265
#9 0x5e0b4 in ingetc () at input.c:210
#10 0x52e4c in ihgetc () at hist.c:242
#11 0x6673c in gettok () at lex.c:621
#12 0x658ec in yylex () at lex.c:337
#13 0x88fd4 in parse_event () at parse.c:421
#14 0x5a0e0 in loop (toplevel=1, justonce=0) at init.c:121
#15 0x23ce8 in main (argc=2, argv=0xefffed5c) at ./main.c:86
-FR.
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author