Re: set : illegal option -o pipefail error while trying to upgrade pkg.

From: void <void_at_f-m.fm>
Date: Sun, 28 Jan 2024 16:20:03 UTC
On Sun, 28 Jan 2024, at 14:33, Mario Marietto wrote:
> Using sh of FreeBSD 12.04 :
>
> /bin/sh : Undefined symbol "stat@FBSD_1.5"
>
> nothing to do.

Maybe copy the sh from /rescue? it's statically-linked

% file /rescue/sh
/rescue/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 15.0 (1500012), FreeBSD-style, stripped

% file /bin/sh
/bin/sh: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 15.0 (1500012), FreeBSD-style, stripped

--