From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6243 invoked from network); 6 Sep 2006 00:40:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Sep 2006 00:40:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97871 invoked from network); 6 Sep 2006 00:40:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Sep 2006 00:40:14 -0000 Received: (qmail 19956 invoked by alias); 6 Sep 2006 00:40:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22672 Received: (qmail 19681 invoked from network); 6 Sep 2006 00:33:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Sep 2006 00:33:30 -0000 Received: (qmail 91159 invoked from network); 6 Sep 2006 00:33:30 -0000 Received: from mailfe05.tele2.fr (HELO swip.net) (212.247.154.140) by a.mx.sunsite.dk with SMTP; 6 Sep 2006 00:33:28 -0000 X-T2-Posting-ID: mBXjJ9CYMpI3HGlT2s4LT8j3JzBVs7ioB0ePn7y7rgg= X-Cloudmark-Score: 0.000000 [] Received: from [213.103.219.122] (HELO localhost) by mailfe05.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 172379674 for zsh-workers@sunsite.dk; Wed, 06 Sep 2006 02:33:28 +0200 Date: Wed, 6 Sep 2006 02:33:23 +0200 From: "arno." To: zsh-workers@sunsite.dk Subject: bugs in prompt_zefram_setup and prompt_clint_setup Message-ID: <20060906003323.GA10153@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I had a bug with zefram and clint prompts themes. Theses prompts put stuff in psvar. When ksharrays is set, the references=20 are wrong. Prompt themes working with psvar should always check that=20 ksharrays is not set. I found another bug in clint in prompt_clint_precmd setopt noxtrace localoptions local exitstatus=3D$? I think exitstatus is supposed to get the exit status of the last=20 command. But as setopt is execute just before, exitstatus always=20 receives "0". setopt should be after "local exitstatus=3D$?" Here is a patch, apply with patch -p 0 >>>> diff -Nur zsh/Functions/Prompts/prompt_clint_setup zsh~/Functions/Prompts/p= rompt_clint_setup --- zsh/Functions/Prompts/prompt_clint_setup 2006-09-06 02:07:42.000000000 = +0200 +++ zsh~/Functions/Prompts/prompt_clint_setup 2006-09-06 02:07:59.000000000= +0200 @@ -56,8 +56,8 @@ } =20 prompt_clint_precmd () { - setopt noxtrace localoptions local exitstatus=3D$? + setopt noxtrace noksharrays localoptions =20 [[ $exitstatus -ge 128 ]] && psvar[1]=3D" $signals[$exitstatus-127]" || psvar[1]=3D"" @@ -67,7 +67,7 @@ } =20 prompt_clint_apm_precmd () { - setopt noxtrace localoptions + setopt noxtrace noksharrays localoptions local bat ac =20 bat=3D${${=3D"$(>>> hopes this helps arno --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE/hdTiH9aBScBsrMRAj1YAJ4wSbDPRBJhbW3agt5gK9IdDVJL8wCfU2bL DKdpCG675kD+tE33JOLwqeU= =dgPm -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--