xref: /dflybsd-src/tools/regression/bin/sh/expansion/heredoc2.0 (revision 3e3895bf4584c1562faf4533cbd97026ee6a8dcf)
1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/expansion/heredoc2.0 222716 2011-06-05 14:13:15Z jilles $
287838cc9SPeter Avalos
387838cc9SPeter Avalosf() { return $1; }
487838cc9SPeter Avalos
587838cc9SPeter Avalos[ `f 42; cat <<EOF
687838cc9SPeter Avalos$?
787838cc9SPeter AvalosEOF
887838cc9SPeter Avalos` = 42 ] || echo simple command bad
987838cc9SPeter Avalos
1087838cc9SPeter Avaloslong=`printf %08192d 0`
1187838cc9SPeter Avalos
1287838cc9SPeter Avalos[ `f 42; cat <<EOF
1387838cc9SPeter Avalos$long.$?
1487838cc9SPeter AvalosEOF
1587838cc9SPeter Avalos` = $long.42 ] || echo long simple command bad
16