Author: jilles Date: Fri May 31 14:45:25 2013 New Revision: 251180 URL: http://svnweb.freebsd.org/changeset/base/251180
Log: sh: Add test cases for break outside a loop. In most shells (including our sh), break outside a loop does nothing with status 0, or at least does not abort. Therefore, scripts sometimes (buggily) depend on this. Added: head/tools/regression/bin/sh/builtins/break4.4 (contents, props changed) head/tools/regression/bin/sh/builtins/break5.4 (contents, props changed) Added: head/tools/regression/bin/sh/builtins/break4.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/builtins/break4.4 Fri May 31 14:45:25 2013 (r251180) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# Although this is not specified by POSIX, some configure scripts (gawk 4.1.0) +# appear to depend on it. + +break +exit 4 Added: head/tools/regression/bin/sh/builtins/break5.4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/builtins/break5.4 Fri May 31 14:45:25 2013 (r251180) @@ -0,0 +1,12 @@ +# $FreeBSD$ + +# Although this is not specified by POSIX, some configure scripts (gawk 4.1.0) +# appear to depend on it. +# In some uncommitted code, the subshell environment corrupted the outer +# shell environment's state. + +(for i in a b c; do + exit 3 +done) +break +exit 4 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"