On 14/02/2024 07:54, Oğuz wrote:
On Wed, Feb 14, 2024 at 9:58 AM Harald van Dijk <a...@gigawatt.nl> wrote:
The test script with 'return'?
I mean this one:
for x in y; do
! continue
done
echo $?
Ah, thanks for the clarification. I still do not see the same results as
you (I still see a difference between yash 2.53 and 2.54, not 2.54 and
2.55), but in dash, gwsh, and yash alike, it looks like it is that same
fix for the return command that also affected the break and continue
commands. I believe that is simply a bug, and unless the conclusion in
this thread is that POSIX is wrong to specify what it does, I will see
to it that at least in gwsh, this is restored for the break and continue
commands.
Cheers,
Harald van Dijk