NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39135: /usr/bin/awk: printf supports extra- (and broken) formatting rules



The following reply was made to PR bin/39135; it has been noted by GNATS.

From: "Greg A. Woods; Planix, Inc." <woods%planix.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/39135: /usr/bin/awk: printf supports extra- (and broken) 
formatting rules
Date: Sat, 12 Jul 2008 11:58:12 -0400

 On 11-Jul-08, at 8:35 PM, cheusov%tut.by@localhost wrote:
 
 > awk 'BEGIN {printf "%llu\n", 123}'
 
 
 Hah!  Interesting side effect of directly using printf(3)!  ;-)
 
 The simplest fix might be that AWK should disallow format specifiers  
 which do not use parameters of the same width which it(AWK) passes to  
 printf().
 
 -- 
                                        Greg A. Woods; Planix, Inc.
                                        <woods%planix.ca@localhost>
 


Home | Main Index | Thread Index | Old Index