From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15562 invoked by alias); 11 Dec 2009 17:52:22 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27499 Received: (qmail 11855 invoked from network); 11 Dec 2009 17:52:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.219.222 as permitted sender) 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= Sender: Joel Bernstein Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: segfault due to chpwd_function From: Joel Bernstein In-Reply-To: <0742D8B8-F67E-48F7-BCCC-3F578A78D4B7@fysh.org> Date: Fri, 11 Dec 2009 17:52:10 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <492E001A-FC35-4405-A0E0-60263C1AC2D1@fysh.org> References: <0742D8B8-F67E-48F7-BCCC-3F578A78D4B7@fysh.org> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1077) 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=20 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=