aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/expansion/heredoc2.0
blob: 24c4cc6f6c5517239e92efef2930558a5c340df7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $FreeBSD: head/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