for loop exit status

Bug #2053053 reported by Oğuz İsmail Uysal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mksh
New
Undecided
Unassigned

Bug Description

The following shell script should print 1 according to POSIX:

  for x in y; do
    ! continue
  done
  echo $?

But it prints 0 on mksh

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

I can see how you get there. I’ve still referred to POSIX on this:

https://<email address hidden>/msg12302.html

This is an extreme corner case, and changing this would need massive effort.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.