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