Are shell scripts read in their entirety when invoked?
问题 I ask because I recently made a change to a KornShell (ksh) script that was executing. A short while after I saved my changes, the executing process failed. Judging from the error message, it looked as though the running process had seen some -- but not all -- of my changes. This strongly suggests that when a shell script is invoked, the entire script is not read into memory. If this conclusion is correct, it suggests that one should avoid making changes to scripts that are running. $ uname