Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16187

Re: %q with truncating size loses safeness of %q

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: %q with truncating size loses safeness of %q
Date 2020-04-20 09:03 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.780.1587387832.3066.bug-bash@gnu.org> (permalink)
References (1 earlier) <4bacf2f0-9802-67d3-f30b-80e37d058a4a@case.edu> <CAOj-5WCqxqh=Gcda9k6y4orQaQYXPgsOgNEOVN1AdZQrkCVbtg@mail.gmail.com> <22039.1587163072@jinx.noi.kre.to> <29253.1587332029@jinx.noi.kre.to> <51b585da-b594-740d-1772-3c3a25a89325@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: %q with truncating size loses safeness of %q Chet Ramey <chet.ramey@case.edu> - 2020-04-20 09:03 -0400

csiph-web