]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/bin/sh/expansion/heredoc2.0
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / bin / sh / expansion / heredoc2.0
1 # $FreeBSD$
2
3 f() { return $1; }
4
5 [ `f 42; cat <<EOF
6 $?
7 EOF
8 ` = 42 ] || echo simple command bad
9
10 long=`printf %08192d 0`
11
12 [ `f 42; cat <<EOF
13 $long.$?
14 EOF
15 ` = $long.42 ] || echo long simple command bad