Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: segfault due to chpwd_function
- X-seq: zsh-workers 27499
- From: Joel Bernstein <joel@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: segfault due to chpwd_function
- Date: Fri, 11 Dec 2009 17:52:10 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=NdPe1kgm64CXEgs4pGmHOp4sN/vjGpqcZvLURdqrFMg=; b=LQ/wpZoyxco2J5Bi5jOwyjXci/r9+pOqVhhiQnUY6xzbvdqLtG0jMyVzDRTNa/cXY1 QwLdZmY9NQiIy+u9GqM/vqp9Ed8Cs//0Y/LGzqycK0QgXglmqUqxAehvKnIC9cYgayKo L+HKudF7yZwV7L935eFVfup83ZI3kvXTahyaU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=iZ7eqkzz4E4LtGzw4TWfwVUogu59iLzsDRHmr3LzQz6otuJ5hCcARL0lnzftW5PJSe R9M/FvyrURyOnIMSpHrzGQ7dMI58V2a/s/dnm7D6U/9V9FlHZ5Dw43Clm975EV3uhOqv OCi6gPSoC98apWaocxmaXX9k+KgVZdTj3noAw=
- In-reply-to: <0742D8B8-F67E-48F7-BCCC-3F578A78D4B7@xxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <0742D8B8-F67E-48F7-BCCC-3F578A78D4B7@xxxxxxxx>
- Sender: Joel Bernstein <jbernsteinwebmail@xxxxxxxxxxxxxx>
On 11 Dec 2009, at 17:36, Joel Bernstein wrote:
> I believe I can workaround this issue by setting the desired prompt theme to a var in my chpwd_function and calling prompt() from my precmd_function
Actually, this doesn't work, I still get a segfault:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100020be4 in hasher ()
(gdb) bt
#0 0x0000000100020be4 in hasher ()
#1 0x0000000100020c2b in gethashnode ()
#2 0x0000000100069995 in callhookfunc ()
#3 0x000000010006d075 in preprompt ()
#4 0x000000010002ac33 in loop ()
#5 0x000000010002bf74 in zsh_main ()
#6 0x0000000100001374 in start ()
Is this a zsh bug?
Any ideas how to achieve dynamic prompt theme changing based on some command being run against the directory being entered?
/joel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author