Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15200
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Stephane Chazelas <stephane.chazelas@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Incorrect option processing in builtin printf(1) |
| Date | Mon, 22 Jul 2019 20:48:44 +0100 |
| Lines | 23 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.2023.1563824931.2688.bug-bash@gnu.org> (permalink) |
| References | <201907221756.x6MHuxaR019063@jinx.noi.kre.to> <mailman.2014.1563818289.2688.bug-bash@gnu.org> <20190722194843.azebfqpardb76fdd@chaz.gmail.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | usenet.stanford.edu 1563824932 9408 209.51.188.17 (22 Jul 2019 19:48:52 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org |
| To | kre@munnari.OZ.AU |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3mvmTnWTVWo+8OvCfh4pi+3pN5i+9BRjLbBZm1ybhV0=; b=ZyQWvWT6djI1R/SMIvjuiUHm9VLRsDKu4NC37OhhTKkHBJtdaHZ5WgeMTVUgtL/5S0 NHTy8FFWsv5V2m/clg7GfV2QzMLFX5MgoZvcRv1OsIgg0LMgE40y6AlHg5Cf9Se49kEK PrkEHhw6RTpm1TOah7ZRm8KXWAz7NAS/ypI2/xbfGKuJVupml0TpfLZpVW0QMzSWCbGl VohbgLSj3fs9Wi3dddpPF3tkyLmDR04LAUuXTy97pzi/HzNVkptxBilxOK+A6SzRsCzD 6cACyc7k4anQxVpa1MKv0YQHUAg3m+qMwCoxm5qiZAT6HXHppc2cm+4yfY8yOseBTCbU b5aQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3mvmTnWTVWo+8OvCfh4pi+3pN5i+9BRjLbBZm1ybhV0=; b=Yo4squOYrH1daRh4pfR8a09An/6k5JE56bogHnKNv/PN6eWs/5PPtmpwbHb9/RIupg joDL17Mao31c/PGidhFItmm/Z/sl21YsF9cB9jtJFX82ZOo5jWQ47Sj4B3r7zCIW734U jI80Smhtfm0BXQ+u7qrujogKbDFgVRjEf7xfhool12JTO6trCMk0Nu4Pihx/OEQuifGv rzZuaf5uaHM2lZbg4M0ZnDp2q9dquXv+u4hynaO4QF8t4BwlEAAt9gHM2RCrogT0jhXj cO8ve4TWdJqzFtVIQbmKNRdAuf4b9ihbOnFLm7HxWnktGEN54wdgKpTYfa9dgYtwoM+q vsbg== |
| X-Gm-Message-State | APjAAAXla1hVYssN6ufV1yYEKzvLgdzORczMwniM281tSNF6wJzx+ok+ a6crF8DJ/zzAC3FyIngmTqQ= |
| X-Google-Smtp-Source | APXvYqwb0kLZ77Qz+ea38DjUnpzcw6e/HbTH6tldSxxmCLTNnWagYKZ8MUvqN9LauXh9GyLGJC6U5A== |
| X-Received | by 2002:adf:a344:: with SMTP id d4mr276122wrb.237.1563824926360; Mon, 22 Jul 2019 12:48:46 -0700 (PDT) |
| Content-Disposition | inline |
| In-Reply-To | <mailman.2014.1563818289.2688.bug-bash@gnu.org> |
| User-Agent | NeoMutt/20171215 |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2a00:1450:4864:20::430 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <20190722194843.azebfqpardb76fdd@chaz.gmail.com> |
| X-Mailman-Original-References | <201907221756.x6MHuxaR019063@jinx.noi.kre.to> <mailman.2014.1563818289.2688.bug-bash@gnu.org> |
| Xref | csiph.com gnu.bash.bug:15200 |
Show key headers only | View raw
2019-07-23 00:56:59 +0700, kre@munnari.OZ.AU: [...] > POSIX specifies that printf(1) has no options, and by not > specifying that it is intended to comply with XBD 12.2 effectivly > says that it is not. That is, in printf, the first arg is > always the format string, whatever it contains. [...] If that was the case, then that would be bug in the POSIX specification. I can't find a single printf implementations where printf -- outputs -- (I tried bash, zsh, ksh93, GNU, yash, busybox, busybox ash, Solaris /bin/printf). Even if POSIX didn't mandate printf -- -%s x to output -x, I'd say it would be a bug in the POSIX specification (it looks like it is). -- Stephane
Back to gnu.bash.bug | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Incorrect option processing in builtin printf(1) kre@munnari.OZ.AU - 2019-07-23 00:56 +0700 Re: Incorrect option processing in builtin printf(1) Stephane Chazelas <stephane.chazelas@gmail.com> - 2019-07-22 20:48 +0100 Re: Incorrect option processing in builtin printf(1) Eric Blake <eblake@redhat.com> - 2019-07-22 14:55 -0500 Re: Incorrect option processing in builtin printf(1) Stephane Chazelas <stephane.chazelas@gmail.com> - 2019-07-22 21:10 +0100
csiph-web