zsh-users
 help / color / mirror / code / Atom feed
From: Chet Ramey <chet@nike.ins.cwru.edu>
To: raul@pleyades.net
Cc: okiddle@yahoo.co.uk, zsh-users@sunsite.dk, chet@po.cwru.edu
Subject: Re: read -s
Date: Mon, 19 Aug 2002 12:34:30 -0400	[thread overview]
Message-ID: <020819163430.AA60149.SM@nike.ins.cwru.edu> (raw)

> >>     For example, bash has a non-POSIX, non-SuSv3 compliant
> >> implementation of 'printf' builtin
> >Out of interest, in what way is bash's printf non-compliant?
> 
>     The 'printf' builtin of BASH gives an error if you print, for
> example, '--'. It interprets it as an option given... SuSv3 says that
> printf must print whatever you pass as parameter.

This is not correct.

In http://www.opengroup.org/onlinepubs/007904975/utilities/printf.html:

The `OPTIONS' section of the printf description says `None'.

http://www.opengroup.org/onlinepubs/007904975/utilities/xcu_chap01.html#tag_01_11
describes what this means:

Default Behavior: When this section is listed as "None.", it means
that the implementation need not support any options.  Standard
utilities that do not accept options, but that do accept operands,
shall recognize "--" as a first argument to be discarded. 

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/


             reply	other threads:[~2002-08-19 16:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 16:34 Chet Ramey [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-14 14:31 Oliver Sturm
2002-08-14 15:02 ` Oliver Kiddle
2002-08-15  7:49   ` Oliver Sturm
2002-08-15  9:59   ` DervishD
2002-08-15 11:57     ` Oliver Kiddle
2002-08-16 11:30       ` DervishD

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=020819163430.AA60149.SM@nike.ins.cwru.edu \
    --to=chet@nike.ins.cwru.edu \
    --cc=chet@po.cwru.edu \
    --cc=okiddle@yahoo.co.uk \
    --cc=raul@pleyades.net \
    --cc=zsh-users@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).