Hello, people.
I have a "simple" script. In this script there is
function2 has a second loop inside it:
To end this sequence - function2 uses $param4 with break 2 command given in variable:
And:
Is it a good idea to use such a scheme? Is there any possible risk or something else "negative"?
I have a "simple" script. In this script there is
Code:
loop (cycle?) > function1 > if[...] > function2 > loop2
function2 has a second loop inside it:
Code:
function2 ()
{
while ... do
...
done
}
To end this sequence - function2 uses $param4 with break 2 command given in variable:
Code:
while function1; do
...
function2 "$param1" "$param2" "$param3" "$param4
...
done
And:
Code:
...
param4="break 2"
...
Is it a good idea to use such a scheme? Is there any possible risk or something else "negative"?