summary refs log tree commit diff
path: root/bin/cash/tests/expansion/heredoc2.0
blob: e1a7e391a3493d511a5ed65a09f1d734e1d02481 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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