Clearing PIPEFAIL in a redo script

25 views
Skip to first unread message

nka...@rocketknowledge.com

unread,
Dec 17, 2024, 12:56:12 PM12/17/24
to redo
I cannot get a redo script to reset a PIPEFAIL. When running a script that sources another Bash script that is needed for its defined functions, re-enabling pipefail causes the redo script to exit with an error code.

I've tried 

|| true

and 

: | :

with no luck. Is there any other way to temporarily suppress "pipefail"? 

Gyepi SAM

unread,
Dec 18, 2024, 4:27:31 PM12/18/24
to nka...@rocketknowledge.com, redo
The bash pipefail option merely determines the source of the return value of a pipeline
in the event of an error. Changing the option will not change the observed behaviour.

Based on your description of the problem,
it sounds like the 'e' option has been set
and you want to unset it.

If it is set in your script,
use 'set +e' to ignore errors and
'set -e' to re-enable the exit on error behaviour.

If it is set in the sourced script, you'll need
to change it there or resort to other trickery.

-Gyepi

Norman Kabir

unread,
Dec 18, 2024, 5:17:19 PM12/18/24
to Gyepi SAM, redo

Doesn’t

|| true

Address “-e” from the sourced script?

Sent from my iPhone

> On Dec 18, 2024, at 3:27 PM, Gyepi SAM <gyep...@gmail.com> wrote:

Steven Henshaw

unread,
Jul 24, 2025, 9:39:08 AMJul 24
to redo

Sorry for intruding I'm a dealer in all kinds of psychedelic products I have some stuffs you might be interested join my channel for more information 


https://t.me/DA1NOTD2

Reply all
Reply to author
Forward
0 new messages