From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10225 invoked from network); 17 Jun 2005 13:50:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jun 2005 13:50:25 -0000 Received: (qmail 98534 invoked from network); 17 Jun 2005 13:50:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jun 2005 13:50:17 -0000 Received: (qmail 6535 invoked by alias); 17 Jun 2005 13:50:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21356 Received: (qmail 6063 invoked from network); 17 Jun 2005 13:48:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Jun 2005 13:48:35 -0000 Received: (qmail 96041 invoked from network); 17 Jun 2005 13:48:35 -0000 Received: from wproxy.gmail.com (64.233.184.207) by a.mx.sunsite.dk with SMTP; 17 Jun 2005 13:48:31 -0000 Received: by wproxy.gmail.com with SMTP id 50so895505wri for ; Fri, 17 Jun 2005 06:48:30 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dvLOPkUC386nOCYyKfDWgNihc5V/m9pQ1UUU68Z9mZ60b/NMpVOoI/+OazUlDf1aPAKDBQ85GFfmmZDTd1aiz1hIXeVupX6Y47h7P8XvIf5slP4qKiPqq2+74J1750Iy7380Sn2uLBe8jvghRCiuJ416fxhhHER1h+oVTGHeOg8= Received: by 10.54.5.9 with SMTP id 9mr1250905wre; Fri, 17 Jun 2005 06:48:30 -0700 (PDT) Received: by 10.54.69.9 with HTTP; Fri, 17 Jun 2005 06:48:30 -0700 (PDT) Message-ID: Date: Fri, 17 Jun 2005 15:48:30 +0200 From: J Reply-To: J To: =?EUC-KR?Q?Harald_van_D=A9=A6k?= Subject: Re: printf bug(s?) Cc: zsh-workers@sunsite.dk In-Reply-To: <42B2CE98.8070905@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42B2203B.3060602@gentoo.org> <8037.1118996107@trentino.groupinfra.com> <42B2CE98.8070905@gentoo.org> 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 > Oh, there are other printfs that behave the same? That I didn't know; in > that case, I may be better off avoiding using \045 anyway and just > replace it with %%... My understanding is that for all intents and purposes, printf should consider a character designed by his octal code as the character itself, be it a control character or not, pretty much the same way that the shell interprets it before handing it to the command when it's enclosed in $'...'. If I run $ printf '\045i' '5+1' I would certainly expect it to print 6, and not %i. Of course that's just what I would expect as a user. Other people may disag= ree. --=20 J