summary refs log tree commit diff
path: root/bin/1sh/tests/expansion/heredoc2.0
blob: 937f7b113159c3c1d7d00acc09db69fa4c2485c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $FreeBSD: releng/12.1/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