Sindbad~EG File Manager

Current Path : /usr/tests/bin/sh/expansion/
Upload File :
Current File : //usr/tests/bin/sh/expansion/heredoc1.0

# $FreeBSD$

f() { return $1; }

[ `f 42; { cat; } <<EOF
$?
EOF
` = 42 ] || echo compound command bad

[ `f 42; (cat) <<EOF
$?
EOF
` = 42 ] || echo subshell bad

long=`printf %08192d 0`

[ `f 42; { cat; } <<EOF
$long.$?
EOF
` = $long.42 ] || echo long compound command bad

[ `f 42; (cat) <<EOF
$long.$?
EOF
` = $long.42 ] || echo long subshell bad

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists