On Wed, Feb 06, 2013 at 07:12:01PM +0100, John Kearney wrote: > IFS= read -rd '' var2 <<EOF || true > > should work.
Which is essentially equivalent to doing "set +e" before, and "set -e" again right after. In either case, you're temporarily working around the brokenness of set -e for a single command.