From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2661 invoked from network); 5 Jun 2005 19:41:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Jun 2005 19:41:13 -0000 Received: (qmail 30439 invoked from network); 5 Jun 2005 19:41:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jun 2005 19:41:07 -0000 Received: (qmail 23211 invoked by alias); 5 Jun 2005 19:41:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8949 Received: (qmail 23200 invoked from network); 5 Jun 2005 19:41:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jun 2005 19:41:00 -0000 Received: (qmail 29332 invoked from network); 5 Jun 2005 19:41:00 -0000 Received: from flock1.newmail.ru (212.48.140.157) by a.mx.sunsite.dk with SMTP; 5 Jun 2005 19:40:56 -0000 Received: (qmail 26383 invoked from network); 5 Jun 2005 19:39:53 -0000 Received: from unknown (HELO ?10.0.0.1?) (arvidjaar@newmail.ru@83.237.13.77) by smtpd.newmail.ru with SMTP; 5 Jun 2005 19:39:53 -0000 From: Andrey Borzenkov To: zsh-users@sunsite.dk Subject: Re: typeset for integers Date: Sun, 5 Jun 2005 23:40:40 +0400 User-Agent: KMail/1.8.1 Cc: Justin M Wozniak References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1189938.nXHFblh5rL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506052340.51794.arvidjaar@newmail.ru> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 --nextPart1189938.nXHFblh5rL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 05 June 2005 23:28, Justin M Wozniak wrote: > Is there a way to get internal integer performance combined with leading > zero output? I.e., for typeset to combine -Z & -i ? Do you mean this? pts/2}% typeset -i 10 -Z 5 i {pts/2}% echo $i 00005 {pts/2}% i=17 {pts/2}% echo $i 00017 -andrey --nextPart1189938.nXHFblh5rL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCo1VDR6LMutpd94wRAqMMAKCv0N2m4h86Z9GgUUmDiEyRLgc4yACfU1GZ 0UnN2NBg/Hxu0UZ1lil55gI= =38FK -----END PGP SIGNATURE----- --nextPart1189938.nXHFblh5rL--