diff options
Diffstat (limited to 'bin/cash/tests/expansion/heredoc2.0')
-rw-r--r-- | bin/cash/tests/expansion/heredoc2.0 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/cash/tests/expansion/heredoc2.0 b/bin/cash/tests/expansion/heredoc2.0 new file mode 100644 index 00000000..e1a7e391 --- /dev/null +++ b/bin/cash/tests/expansion/heredoc2.0 @@ -0,0 +1,15 @@ +# $FreeBSD: releng/12.0/bin/sh/tests/expansion/heredoc2.0 222716 2011-06-05 14:13:15Z jilles $ + +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 |