While quite dealt upon with in the forums, the questions usually focus on environment variables on linux box.
I wonder if there is any specification, clear determination regarding maximum (limiting) size a regular variable (a='Hello') can hold.
Is the size limited by memory only?
Is there a fixed/flexible limit imposed on regular variables?
What is the maximum size I can load into a variable (a=$(cat bigfile.txt)) until strange things start to happen?
I would like to know where is the limit so I can decide whether or not it is a good idea to use variable to load text file into it. (and how big it could be to still feel within limits) and if the system gives clear error when the limit is reached.