Hi Chet,

consider the following program:

yyy() {
  continue
}

xxx() {
  while true; do
    echo x
    yyy
    echo y
    break
  done
}

xxx

In the bash devel branch it will ignore the continue and echo

x
y

In the stable branch it will echo

x
x
x
x
.
.
.


forever, because the continue works across function calls.

Is this intended or a bug?

Cheers
--
Carlos

Reply via email to