The question may be trivial but with this simple for loop
for i in {1..10000000}; do echo "$i" line >> file
done
my shell crashed after some elaboration time (the tab in the terminal emulator was automatically closed) and file was not created.
It is GNU bash, version 4.1.11(2)-release.
Is this due to a memory limit or what else? And if yes which should be this limit?
With {1..1000000} it worked correctly.