bug-bash
[Top][All Lists]
Advanced

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

Continue behavior in devel branch


From: Carlos Pita
Subject: Continue behavior in devel branch
Date: Sat, 10 Oct 2015 10:36:16 -0300

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

[Prev in Thread] Current Thread [Next in Thread]