Re: BASH

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

 



On 09:50 04 Dec 2004, Bill Gradwohl <bill@xxxxxxx> 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@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

A long-forgotten loved one will appear soon. Buy the negatives at any price.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux