svn commit: r208387 - in stable/7/tools/regression/bin/sh: builtins
set-e
Stefan Farfeleder
stefanf at FreeBSD.org
Fri May 21 16:32:15 UTC 2010
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
More information about the svn-src-stable
mailing list