zsh-workers
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Stephane CHAZELAS <Stephane.CHAZELAS@free.fr>
Cc: zsh-workers@sunsite.dk
Subject: Re: printf and POSIX compliance
Date: Tue, 4 Feb 2003 19:26:11 +0100	[thread overview]
Message-ID: <20030204182611.GE18261@DervishD> (raw)
In-Reply-To: <20030204164425.A192@pcchazelas.free.fr>

    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


  reply	other threads:[~2003-02-04 18:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-04 15:44 Stephane CHAZELAS
2003-02-04 18:26 ` DervishD [this message]
2003-02-05 13:10   ` Stephane CHAZELAS
2003-02-05 13:42     ` Peter Stephenson
2003-02-11 12:09       ` PATCH: unset -v (was Re: printf and POSIX compliance) Oliver Kiddle
2003-02-05 14:41     ` printf and POSIX compliance DervishD
2003-02-11  8:29 ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030204182611.GE18261@DervishD \
    --to=raul@pleyades.net \
    --cc=Stephane.CHAZELAS@free.fr \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).