Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Segfaulting script
- X-seq: zsh-workers 22490
- From: Andrew Ruder <andy@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Segfaulting script
- Date: Tue, 13 Jun 2006 18:15:06 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hey all,
I was writing a script today and was getting a segfault (on what turned
out to be a very incorrect line), but nonetheless... The attached script
when sourced into a running shell causes future tab completion to die. I
have verified this against 4.2.6 and 4.3.2. Looking at a backtrace
seems to show that it is hitting infinite recursion.
% zsh -f
[\u@\h \W]\$ . ./test.zsh
Ok, try tab completion...
[\u@\h \W]\$ <TAB>zsh: segmentation fault (core dumped) zsh -f
Thanks,
Andrew Ruder
P.S. You don't have to tell me how wrong/stupid/etc.. the script in
question is... :)
--
Andrew Ruder <andy@xxxxxxxxxxx>
http://www.aeruder.net
#!/bin/zsh
autoload -U compinit
compinit
function testfunc {
local flag_strings=()
local anything
}
testfunc
echo "Ok, try tab completion..."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author