Quote:
Originally Posted by
Junaid Subhani
Will my previous values been in tmp variables? Im not sure on how memory management works in unix.
A "shell" is a program like any. A "shell script" is a text file with commands the shell program can read, understand and execute.
Memory management in Unix is equal to all the other OSes out there insofar as programs which end release their memory back to the OS. If every invocation of a software would come up in the same status it had when it ended a program crashing could never be restarted because it would come up in the same crashed state as it exited, no?
If you want to maintain your values write them down to a file and test for the existence of this file upon startup and fill your arrays from reading this file if it exists.
I hope this helps.
bakunin