bug-gnu-utils
[Top][All Lists]
Advanced

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

gnu awk 3.1.5


From: Morten Nygaard Åsnes
Subject: gnu awk 3.1.5
Date: Thu, 14 Sep 2006 10:58:44 +0200
User-agent: KMail/1.9.1

Hi, I think this is a bug in Gnu Awk 3.1.5
I'm running it on Ubuntu Dapper.

   gawk 'END {a=""; while(length(a)<10) a=a "a"; print a} ' /dev/null

this goes into an infinite loop.
while this does work as expected:

   gawk 'END {a=""; while(length(a)<10) a=sprintf("%sa",a); print a} ' /dev/null

and prints

   aaaaaaaaaa

I think the first example should produce the same output as the second.

-- 
Morten Nygaard Åsnes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]