dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dash 0.5.9: break and continue bug
@ 2016-08-23 20:23 Zdenek Kaspar
  2016-08-23 20:41 ` Harald van Dijk
  0 siblings, 1 reply; 3+ messages in thread
From: Zdenek Kaspar @ 2016-08-23 20:23 UTC (permalink / raw)
  To: dash

Hi, I've noticed 0.5.9 does ignore break and continue statements, here
is simple reproducer:


one() {
    echo "  one"
    break
}

two() {
    echo "  two"
}

for i in 1 2
do
    echo "loop $i:"
    one
    two
done


dash-0.5.9:
$ dash dash-break-test
loop 1:
  one
  two
loop 2:
  one
  two

dash-0.5.8-4.fc24.x86_64:
$ dash dash-break-test
loop 1:
  one

HTH, Z.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-23 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 20:23 dash 0.5.9: break and continue bug Zdenek Kaspar
2016-08-23 20:41 ` Harald van Dijk
2016-08-23 22:24   ` Zdenek Kaspar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).