bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors are ignored with local variable assignment


From: Chet Ramey
Subject: Re: Errors are ignored with local variable assignment
Date: Wed, 4 Jan 2023 10:27:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 1/4/23 1:21 AM, Carlos Prieto López wrote:

Bash Version: 5.1
Patch Level: 4
Release Status: release

Description:
        Errors are ignored when a command with error is assigned to a local variable on the same line of declaration.

This comes up often; just last month, in fact:

https://lists.gnu.org/archive/html/bug-bash/2022-12/msg00003.html

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]