[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %q with truncating size loses safeness of %q
From: |
Chet Ramey |
Subject: |
Re: %q with truncating size loses safeness of %q |
Date: |
Mon, 20 Apr 2020 09:03:39 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/19/20 5:33 PM, Robert Elz wrote:
> Date: Sun, 19 Apr 2020 15:40:39 -0400
> From: Chet Ramey <chet.ramey@case.edu>
> Message-ID: <8c5bdd2c-bc61-a885-6a05-690ef7f515ce@case.edu>
>
> | Nobody, including POSIX, is rational, then.
>
> There is no %q in POSIX printf currently, so the issue
> does not arise there, and in any case, its objective is
> not to be rational, but to document what works
I'm referring to the specification of %b that I quoted in another message,
which uses the precision after the argument is expanded.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: %q with truncating size loses safeness of %q, (continued)