Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
Here's how to reproduce the problem:
(printf 'ln '
perl -e 'print "x"x(2**31)'
printf ' '
perl -e 'print "x"x(2**30)'
printf '\n'
) >bigscript
bash bigscript
On my x86-64 host, Bash loops, seemingly forever.
I expect it's using a 32-bit integer to keep track
of line lengths, somewhere.
This bug report was inspired by the following report:
http://debbugs.gnu.org/13258
That bug report is against coreutils, but the real
bug was in bash, so I'm closing bug 13258 and forwarding
this to bug-bash@gnu.org.
[Prev in Thread]
Current Thread
[Next in Thread]
Bash loops and otherwise mishandles long lines,
Paul Eggert<=