From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21329 invoked from network); 4 Feb 2003 18:39:53 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Feb 2003 18:39:53 -0000 Received: (qmail 12803 invoked by alias); 4 Feb 2003 18:39:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18190 Received: (qmail 12794 invoked from network); 4 Feb 2003 18:39:43 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Feb 2003 18:39:43 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [66.70.28.20] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Feb 2003 18:39:42 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by [66.70.28.21] (8.10.2/8.10.2) with ESMTP id h14IdXb02267; Tue, 4 Feb 2003 19:39:33 +0100 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <18g7lr-0004lq-00>; Tue, 4 Feb 2003 19:26:11 +0100 Date: Tue, 4 Feb 2003 19:26:11 +0100 From: DervishD To: Stephane CHAZELAS Cc: zsh-workers@sunsite.dk Subject: Re: printf and POSIX compliance Message-ID: <20030204182611.GE18261@DervishD> Mail-Followup-To: Stephane CHAZELAS , zsh-workers@sunsite.dk References: <20030204164425.A192@pcchazelas.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030204164425.A192@pcchazelas.free.fr> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Stephane :) > http://www.opengroup.org/onlinepubs/007904975/utilities/printf.html > that, according to POSIX: That is Single Unix Specification, not POSIX, am I wrong? > 3- In addition to the escape sequences shown in the Base Oh, additional sequences, not POSIX ones. Ok, then :) > Note that neither bash nor GNU printf behave better. The GNU printf says in its info manual that '\0ooo' is interpreted as an octal number, but doesn's say anything about \ooo where the 'o' are octal digits. It barfs in your example saying that '\3' is not a valid escape sequence :(( I notified and got fixed a bug about GNU printf argument handling a time ago, for not being SuS compliant. Don't know the current status of SuS compliance that GNU shell utilities have :??? Wait for GNU coreutils. BTW, as far as I know, zsh has not a printf builtin. Raśl