exit 44 & p44=$! exit 45 & p45=$! exit 7 & p7=$! wait "$p44" "$p7" "$p45" [ "$?" = 45 ]