diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2011-06-03 21:17:42 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2011-06-03 21:17:42 +0000 |
| commit | 3eee62c606c3f17de8a9f2c2b356731aae0e2560 (patch) | |
| tree | 0d204b8dc79216e482d13bbf91c22df28ff145fe /tools | |
| parent | 22e0612f0fd8087ca3f2e84c8fb457b8d5eb9de5 (diff) | |
Notes
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 000000000000..14c9b9396ada --- /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 000000000000..c7f31629f474 --- /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 000000000000..24a9159fdeb9 --- /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" ] |
