diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/execution/set-n1.0 | 7 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/set-n2.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/set-n3.0 | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/set-n1.0 b/tools/regression/bin/sh/execution/set-n1.0 new file mode 100644 index 0000000..14c9b93 --- /dev/null +++ b/tools/regression/bin/sh/execution/set-n1.0 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +v=$( ($SH -n <<'EOF' +for +EOF +) 2>&1 >/dev/null) +[ $? -ne 0 ] && [ -n "$v" ] diff --git a/tools/regression/bin/sh/execution/set-n2.0 b/tools/regression/bin/sh/execution/set-n2.0 new file mode 100644 index 0000000..c7f3162 --- /dev/null +++ b/tools/regression/bin/sh/execution/set-n2.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +$SH -n <<'EOF' +echo bad +EOF diff --git a/tools/regression/bin/sh/execution/set-n3.0 b/tools/regression/bin/sh/execution/set-n3.0 new file mode 100644 index 0000000..24a9159 --- /dev/null +++ b/tools/regression/bin/sh/execution/set-n3.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +v=$( ($SH -nc 'for') 2>&1 >/dev/null) +[ $? -ne 0 ] && [ -n "$v" ] |