Bruno Haible wrote:
> The bug affects not only %f but also %g, and it can lead to a SIGSEGV.
>
> Reproduce with the bash 3.2.1 built-in:
...
> or with the printf program from coreutils 8.4:
>
> $ env LC_ALL=en_US.UTF-8 printf "%'.5g\\n" 999.996
> 1000
> $ env LC_ALL=en_US.UTF-8 printf "%'.4g\\n" 9999.996
> Segmentation fault
...
Not surprisingly, with this, you can crash seq, too:
$ LC_ALL=en_US.utf8 seq --format %\'.4g 9999 .1 10001
9,999
9,999
9,999
9,999
9,999
zsh: segmentation fault (core dumped) LC_ALL=en_US.utf8 seq --format
%\'.4g 9999 .1 10001
[Exit 139 (SEGV)]