Date: Fri, 21 May 2010 16:32:15 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r208387 - in stable/7/tools/regression/bin/sh: builtins set-e Message-ID: <201005211632.o4LGWFh6069592@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: stefanf Date: Fri May 21 16:32:14 2010 New Revision: 208387 URL: http://svn.freebsd.org/changeset/base/208387 Log: Merge r193178 and r194897: Tests for the eval command. Added: stable/7/tools/regression/bin/sh/builtins/eval1.0 - copied unchanged from r193178, head/tools/regression/bin/sh/builtins/eval1.0 stable/7/tools/regression/bin/sh/builtins/eval2.0 - copied unchanged from r194897, head/tools/regression/bin/sh/builtins/eval2.0 stable/7/tools/regression/bin/sh/set-e/eval1.0 - copied unchanged from r193178, head/tools/regression/bin/sh/set-e/eval1.0 stable/7/tools/regression/bin/sh/set-e/eval2.1 - copied unchanged from r193178, head/tools/regression/bin/sh/set-e/eval2.1 Modified: stable/7/tools/regression/bin/sh/set-e/not2.0 Directory Properties: stable/7/tools/regression/bin/sh/ (props changed) Copied: stable/7/tools/regression/bin/sh/builtins/eval1.0 (from r193178, head/tools/regression/bin/sh/builtins/eval1.0) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/7/tools/regression/bin/sh/builtins/eval1.0 Fri May 21 16:32:14 2010 (r208387, copy of r193178, head/tools/regression/bin/sh/builtins/eval1.0) @@ -0,0 +1,9 @@ +# $FreeBSD$ +set -e + +eval +eval "" "" +eval "true" +! eval "false + +" Copied: stable/7/tools/regression/bin/sh/builtins/eval2.0 (from r194897, head/tools/regression/bin/sh/builtins/eval2.0) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/7/tools/regression/bin/sh/builtins/eval2.0 Fri May 21 16:32:14 2010 (r208387, copy of r194897, head/tools/regression/bin/sh/builtins/eval2.0) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +eval ' +false + +' && exit 1 +exit 0 Copied: stable/7/tools/regression/bin/sh/set-e/eval1.0 (from r193178, head/tools/regression/bin/sh/set-e/eval1.0) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/7/tools/regression/bin/sh/set-e/eval1.0 Fri May 21 16:32:14 2010 (r208387, copy of r193178, head/tools/regression/bin/sh/set-e/eval1.0) @@ -0,0 +1,3 @@ +# $FreeBSD$ +set -e +eval false || true Copied: stable/7/tools/regression/bin/sh/set-e/eval2.1 (from r193178, head/tools/regression/bin/sh/set-e/eval2.1) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/7/tools/regression/bin/sh/set-e/eval2.1 Fri May 21 16:32:14 2010 (r208387, copy of r193178, head/tools/regression/bin/sh/set-e/eval2.1) @@ -0,0 +1,4 @@ +# $FreeBSD$ +set -e +eval false +exit 0 Modified: stable/7/tools/regression/bin/sh/set-e/not2.0 ============================================================================== --- stable/7/tools/regression/bin/sh/set-e/not2.0 Fri May 21 16:25:16 2010 (r208386) +++ stable/7/tools/regression/bin/sh/set-e/not2.0 Fri May 21 16:32:14 2010 (r208387) @@ -1,3 +1,4 @@ # $FreeBSD$ set -e ! false +! eval false
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005211632.o4LGWFh6069592>