[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sr #111211] `pipefail` leak/disablement
From: |
Emanuele Torre |
Subject: |
Re: [sr #111211] `pipefail` leak/disablement |
Date: |
Mon, 24 Mar 2025 08:54:13 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Mon, Mar 24, 2025 at 03:47:20AM -0400, anonymous wrote:
> # Check if pipefail is set using 'shopt'
> if (set -o | grep -q 'pipefail *on'); then
> pipefail_on=1
> fi
To check if an option is set you use [[ -o pipefail ]], not that thing.
Also if you run local - in a function, al subsequent option changes
are retored when the function returns.
o/
emanuele6