bug-bash
[Top][All Lists]
Advanced

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

Re: Proposal for a New Bash Option: failfast for Immediate Pipeline Fail


From: Chet Ramey
Subject: Re: Proposal for a New Bash Option: failfast for Immediate Pipeline Failure
Date: Fri, 28 Jun 2024 13:26:19 -0400
User-agent: Mozilla Thunderbird

On 6/24/24 10:21 AM, ama bamo wrote:

To address these issues, I propose the introduction of a new option,
failfast, which would immediately terminate the pipeline if any command in
the pipeline fails. This would streamline error handling and provide more
predictable script execution, aligning with user expectations in many
common use cases.

I don't see general value in killing pipeline processes (using SIGKILL,
possibly after trying SIGTERM first), as soon as one of them fails.

Chet
--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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