From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18624 invoked from network); 4 Jul 2005 13:24:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Jul 2005 13:24:30 -0000 Received: (qmail 73985 invoked from network); 4 Jul 2005 13:24:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jul 2005 13:24:24 -0000 Received: (qmail 12474 invoked by alias); 4 Jul 2005 13:24:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9019 Received: (qmail 12465 invoked from network); 4 Jul 2005 13:24:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Jul 2005 13:24:13 -0000 Received: (qmail 72890 invoked from network); 4 Jul 2005 13:24:13 -0000 Received: from wproxy.gmail.com (64.233.184.204) by a.mx.sunsite.dk with SMTP; 4 Jul 2005 13:24:08 -0000 Received: by wproxy.gmail.com with SMTP id i31so692687wra for ; Mon, 04 Jul 2005 06:24:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HK5BVuJeVdf+d4rodaIT7UK7NEnMU8KDrv9WWuwrmPBNRyIc9UEU0rHC25Hb6sD8qzNICfb0XwmP6KQ8p744soQIZQRdFiIZqJu1UnQrHWjz2jRKQe9mOIFiguuyh6MT9RWSE2JJpHJ6/ModL+pbWwFiKAFhNcq4OcV3gva8Dsc= Received: by 10.54.117.16 with SMTP id p16mr3738198wrc; Mon, 04 Jul 2005 06:24:07 -0700 (PDT) Received: by 10.54.69.9 with HTTP; Mon, 4 Jul 2005 06:24:07 -0700 (PDT) Message-ID: Date: Mon, 4 Jul 2005 15:24:07 +0200 From: J Reply-To: J To: zsh-users Subject: Re: reinventing print_exit_value In-Reply-To: <20050704122901.GC5546@puritan.pnetwork> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200507032356.17308.cht@chello.at> <200507040104.41345.cht@chello.at> <20050703233511.GC5083@puritan.pnetwork> <200507040209.14406.cht@chello.at> <20050704122901.GC5546@puritan.pnetwork> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 On 7/4/05, Nikolai Weibull wrote: > Christian Taylor wrote: >=20 > > Yes, I could also achieve the desired output using a multi-lined > > prompt, but I would still have to perform the same check using the > > preexec-function that I mentioned in my original posting. (After just > > hitting enter, the exit status is not reset, and so it would be > > displayed a second time.) >=20 > OK, I missed that, sorry. Still, how much of a problem is this? > Perhaps you should just stop hitting a bunch of times after a > non-zero exit status? ;-), > nikolai >=20 > --=20 > Nikolai Weibull: now available free of charge at http://bitwi.se/! > Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. > main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} >=20 --=20 J "If you wish to leave a record of your call, please state your messij at the sound of the tone."