Author: jilles Date: Sun Feb 20 17:28:58 2011 New Revision: 218891 URL: http://svn.freebsd.org/changeset/base/218891
Log: sh: Add some tests for omitting whitespace whereever possible. Added: head/tools/regression/bin/sh/parser/no-space1.0 (contents, props changed) head/tools/regression/bin/sh/parser/no-space2.0 (contents, props changed) Added: head/tools/regression/bin/sh/parser/no-space1.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/parser/no-space1.0 Sun Feb 20 17:28:58 2011 (r218891) @@ -0,0 +1,18 @@ +# $FreeBSD$ + +# These are ugly but are required to work. + +set -e + +while(false)do(:)done +if(false)then(:)fi +if(false)then(:)else(:)fi +(:&&:)||: +until(:)do(:)done +case x in(x);;*)exit 1;(:)esac +case x in(x);;*)exit 1;;esac +for i do(:)done +{(:)} +f(){(:)} +:|: +(:)|(:) Added: head/tools/regression/bin/sh/parser/no-space2.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/parser/no-space2.0 Sun Feb 20 17:28:58 2011 (r218891) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# This conflicts with ksh extended patterns but occurs in the wild. + +set -e + +!(false) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"