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.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to