Can you edit a shell script while it\'s running and have the changes affect the running script?
I\'m curious about the specific case of a csh script I have that batc
Break your script into functions, and each time a function is called you source it from a separate file. Then you could edit the files at any time and your running script will pick up the changes next time it gets sourced.
source
foo() { source foo.sh } foo