Sirs, I am writing a simple controller flows and are in a trouble, feel that some kind of change, but could not find :(
The problem is that I process cycle and in good condition is change the variable $freePipe to finish the main cycle, but I'm changing it inside the loop of the second level and when I check it in the main loop to continue or stop, then it resets the value. Below simplified code
while [ "$freePipe" == 0 ]
echo "Begin selection"
cat $ipListFile | while read line
echo "1 - $freePipe"
echo "2 - $freePipe"
echo "3 - $freePipe"
Need to get $freePipe and get freePipe=0 always :(
And echo 1 shows the set value, and 2 and 3 indicate "0"