Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

v5.22.0: Redundant argument in %s versus minimum width in sprintf

by JadeNB (Chaplain)
on Jun 30, 2015 at 23:39 UTC ( #1132751=perlquestion: print w/replies, xml ) Need Help??

JadeNB has asked for the wisdom of the Perl Monks concerning the following question:

Hi, folks! I recently saw a post on TSE about an apparent incompatibility between v5.22.0 and TeXLive's tlmgr progamme. Based on the description in the self-answer, it seems that (some of) the problem is that lines 3109–3110 of tlmgr say:
info("[" . sprintf ('%*2$s', $currnr, $totalnrdigits) . "/$totalnr, $estrem/$esttot] update: $pkg [${kb}k] ($rev -> +$mediarevstr)");
and that this produces the error Redundant argument in sprintf at /usr/local/texlive/bin/tlmgr line 3109. Based on Redundant argument in s Redundant argument in %s, this is because of, well, a redundant argument in sprintf—I guess it's bothered by the fact that two strings are passed, but only one is referenced. However, sprintf lists almost this exact useage as recommended. Is this a (Perl) bug, or perhaps just a lag between online documentation and the latest version (as evidenced by the fact that perldoc online doesn't currently know about this new error message!); and / or is there some appropriate work-around?

Replies are listed 'Best First'.
Re: v5.22.0: Redundant argument in %s versus minimum width in sprintf
by dave_the_m (Monsignor) on Jul 01, 2015 at 09:48 UTC
    It's a bug. It's already been reported and fixed, and is in the process of being back-ported to 5.22.1-tobe.

    Dave.

Re: v5.22.0: Redundant argument in %s versus minimum width in sprintf
by Anonymous Monk on Jul 01, 2015 at 02:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1132751]
Approved by kevbot
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-04-06 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (36 votes). Check out past polls.

    Notices?