[Top][All Lists]

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

Bash bug with ints beyond 2147483646

From: Pete Gregory
Subject: Bash bug with ints beyond 2147483646
Date: Tue, 2 Nov 2010 15:48:49 -0400

Even with a 64-bit kernel, under bash4.1-2 under ubuntu 10.04, problems exist 
with numbers beyond 2147483646.

Easy duplication method:
echo {2147483640..2147483646}
2147483640 2147483641 2147483642 2147483643 2147483644 2147483645 2147483646
echo {2147483640..2147483647}
dies with a malloc error

larger numbers are accepted but cause similar issues - perhaps because it is 
internally treating these as signed 32-bit ints?

It would be great if things could 'just work'


reply via email to

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