On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
> On 17 Oct 2026 08:40:24 GMT, Stéphane CARPENTIER wrote: >
>> Now, there are almost no more interpreted scripts.
> > Shell scripts are still interpreted. Not only that, but the shell > actually seeks through the source file to do a transfer of control. > > How do I know this? Try making changes to the script while it is > running. ;)
I've just done this ("a script change while it's running") [*] (with ksh and bash) and there was no change in behavior of the running script. You may want to provide an example what you've actually done to come to that conclusion (or reformulate your conclusion). BTW; I've in other (more complex?) contexts observed that some intrusions (tackling the shell program while it runs) do affect the running script, but back then I haven't examined the reason or circumstances of that effect, or whether it's some effect of an interaction with the OS. - So the principle question, what exactly happens in what circumstances, is still interesting. Janis [*] What I've done was to run the following script "dynchg.sh" while read ; do echo $REPLY done and change it (from another terminal) while it runs by sed -i '2p' dynchg.sh I could even remove that file from the directory and it still processes data as expected. And there's also no difference if that program is explicitly run with the interpreter or running it using a shebang interpreter as executable script.