dash 0.5.9: break and continue bug

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

 



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.
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux