From halmurray at sonic.net Wed Sep 9 11:16:01 2026 From: halmurray at sonic.net (Hal Murray) Date: Wed, 09 Sep 2026 04:16:01 -0700 Subject: Really old sh -- pipefail Message-ID: <20260909111601.501E862003D@107-137-68-211.lightspeed.sntcca.sbcglobal.net> I'm trying to understand this code from tests/option-tester.sh # set pipefail to catch pipeline failures # Unfortunately, it doesn't work on some older sh-es if (set -o pipefail) 2>/dev/null then set -o pipefail fi What is the () doing there? Why not just set it and ignore the error if that doesn't work? I no longer have any systems that are old enough to have a sh that doesn't support pipefail. Does anybody have an old sh to experiment with? -- These are my opinions. I hate spam.