xref: /freebsd/bin/sh/tests/expansion/heredoc2.0 (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1# $FreeBSD$
2
3f() { return $1; }
4
5[ `f 42; cat <<EOF
6$?
7EOF
8` = 42 ] || echo simple command bad
9
10long=`printf %08192d 0`
11
12[ `f 42; cat <<EOF
13$long.$?
14EOF
15` = $long.42 ] || echo long simple command bad
16