On 3/25/10 6:32 AM, Rob Robason wrote: > Sorry I couldn't use bugbash - I don't work with source. > > I've attached a complete description of the bug.
Thanks for the report. It's a simple bug, with a simple fix. I've attached a patch, but it may not be useful to non-source users. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.1-patched/builtins/printf.def 2010-01-18 10:50:22.000000000 -0500 --- builtins/printf.def 2010-03-25 09:40:56.000000000 -0400 *************** *** 118,122 **** nw = vflag ? vbprintf (f, fieldwidth, func) : printf (f, fieldwidth, func); \ else if (have_precision) \ ! nw = vflag ? vbprintf (f, precision, func) : printf (f, fieldwidth, func); \ else \ nw = vflag ? vbprintf (f, func) : printf (f, func); \ --- 118,122 ---- nw = vflag ? vbprintf (f, fieldwidth, func) : printf (f, fieldwidth, func); \ else if (have_precision) \ ! nw = vflag ? vbprintf (f, precision, func) : printf (f, precision, func); \ else \ nw = vflag ? vbprintf (f, func) : printf (f, func); \