[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: builtin "read -d" behaves differently after "set -e#
From: |
Greg Wooledge |
Subject: |
Re: builtin "read -d" behaves differently after "set -e# |
Date: |
Wed, 6 Feb 2013 13:21:18 -0500 |
User-agent: |
Mutt/1.4.2.3i |
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.