Op 08-04-17 om 00:36 schreef Chet Ramey: > On 4/7/17 6:56 PM, Martijn Dekker wrote: > >> A second thing: >> >> $ mksh -o posix -c 'break; echo $?' >> mksh: break: can't break >> 0 >> $ mksh -o posix -c 'continue; echo $?' >> mksh: continue: can't continue >> 0 >> >> 'break' and 'continue' are POSIX "special builtins", meaning if they >> fail they should cause the shell to exit, at least in POSIX mode. > > Posix explicitly makes this case unspecified.
So it does. My bad. Remains the question whether the current behaviour is actually sensible. - M.
