aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/expansion/heredoc2.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/expansion/heredoc2.0')
-rw-r--r--bin/sh/tests/expansion/heredoc2.015
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/sh/tests/expansion/heredoc2.0 b/bin/sh/tests/expansion/heredoc2.0
new file mode 100644
index 000000000000..255143296d4a
--- /dev/null
+++ b/bin/sh/tests/expansion/heredoc2.0
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+f() { return $1; }
+
+[ `f 42; cat <<EOF
+$?
+EOF
+` = 42 ] || echo simple command bad
+
+long=`printf %08192d 0`
+
+[ `f 42; cat <<EOF
+$long.$?
+EOF
+` = $long.42 ] || echo long simple command bad