On 9/1/26 6:49 AM, Mike Jonkmans wrote:
I like that you don't have to worry about functions that are not yet defined.
The only problem might be that the whole script needs to be read in from disk.
It depends on your needs. kre described that as an advantage.
should there be a need, the file containing the script can be modified (with
added, or deleted, sections) without affecting in any way any current instances
of the script that might be still running.
O yes, been bitten by that.
Is this still a problem in current shells/bash?
It's an implementation detail. Bash reads the entire script at once, but
will seek backwards to the point where the parser has consumed input if
needed.
Using the structure you describe above, those seeks should never be needed.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/