[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] set -e skips commands in $()
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] set -e skips commands in $() |
Date: |
Thu, 11 Oct 2012 12:06:28 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Thu, Oct 11, 2012 at 11:46:16AM -0400, Sergey Fadeev wrote:
> But is there a way to tell bash that I want it to check return values of
> command substitutions, too?
if x=$(foo); then
blah blah
fi
If you stop trying to use set -e, your life will become dramatically
simpler.