Re: errexit and local variable set by failing command
From:
Greg Wooledge
Subject:
Re: errexit and local variable set by failing command
Date:
Wed, 1 Apr 2020 13:17:46 -0400
User-agent:
Mutt/1.10.1 (2018-07-13)
On Wed, Apr 01, 2020 at 04:54:42PM +0000, Krystian Wojtas via Bug reports for
the GNU Bourne Again SHell wrote:
> Script has set errexit flag. It runs function. Function declares
> local variable and set it to output of run subcommand. Subcommand fails.
> Script does not care and continue execution.https://mywiki.wooledge.org/BashPitfalls#pf27