3 # Bug was causing sh to be run in subshell,
4 # as if this line is replaced with (sh -c ...; exit $?) &
6 sh -c 'echo REAL_CHILD=$$' &
7 echo PARENTS_IDEA_OF_CHILD=$!
8 wait # make sure bkgd shell completes
15 test x"$REAL_CHILD" != x"" \
16 && test x"$REAL_CHILD" = x"$PARENTS_IDEA_OF_CHILD"
17 echo "Bug detected: $?"