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

Reply via email to