[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can bash read the entire script at once





Torquil Macdonald Sørensen wrote:
Hello, when Bash executes scripts it does not read the next line until the command on the current line finishes. This means that problems arise if one edits the script while it runs.

Is it possible (in a simple way) to tell Bash to read the entire script and then execute it from memory instead, so that I can edit the script without affecting a running instance?

Best regards,
Torquil Sørensen



Why not just make a copy of the script and use that instead? ie.
cp scipt.sh ~/development/script.sh
vim ~/development/script.sh


Reply to: