Bug 14851

Summary: Support pipefail in `sh`
Product: Busybox Reporter: Trevor Gross <tmgross>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Trevor Gross 2022-06-17 01:12:49 UTC
Hello all,

As I understand, POSIX:2022 will include the option to set -o pipefail. Would busybox consider adding this to their flavor of `sh`?

The POSIX standard is expected to be released in 2023 I believe. The in-progress standard is quite difficult to access for those not involved, but this discussion makes it clear that it should be coming: https://www.austingroupbugs.net/view.php?id=789. Additionally, Stéphane in this comment states that the resolution was accepted in 2019: https://unix.stackexchange.com/a/654932/150903

Even outside of the scope of this standard, pipefail is a very useful option and could be added at any time.

Note: I opened this request at the suggestion of Natanael Copa, based on the Alpine git issue here: https://github.com/alpinelinux/docker-alpine/issues/258. Most of the aboce is paraphrased from what I wrote in the comments there.