BASH
Cameron Simpson
cs at zip.com.au
Sun Dec 5 07:28:30 UTC 2004
On 09:50 04 Dec 2004, Bill Gradwohl <bill at ycc.com> wrote:
| 1) When a BASH script is executed, the file that represents the script
| must be read by the interpreter. Assuming the script is a long running
| script, is it safe to modify the script while its executing?
No.
The shell reads from the file, and keeps offsets around.
| 2) There seems to be no way to "goto" in BASH. If one has a lengthy
| script that fails half way down, the only thing to do appears to be to
| wrap the top half in an if that won't execute so as to skip that top
| half and get to where the script should again restart. Is there a better
| way to do this?
Yes.
Loops, flags, control flow.
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
A long-forgotten loved one will appear soon. Buy the negatives at any price.
More information about the fedora-list
mailing list