]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/expansion/heredoc1.0
shell_cmds-207.11.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / heredoc1.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/expansion/heredoc1.0 222715 2011-06-05 12:46:26Z jilles $
71aad674
A
2
3f() { return $1; }
4
5[ `f 42; { cat; } <<EOF
6$?
7EOF
8` = 42 ] || echo compound command bad
9
10[ `f 42; (cat) <<EOF
11$?
12EOF
13` = 42 ] || echo subshell bad
14
15long=`printf %08192d 0`
16
17[ `f 42; { cat; } <<EOF
18$long.$?
19EOF
20` = $long.42 ] || echo long compound command bad
21
22[ `f 42; (cat) <<EOF
23$long.$?
24EOF
25` = $long.42 ] || echo long subshell bad