Bug 14851 - Support pipefail in `sh`
Summary: Support pipefail in `sh`
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-17 01:12 UTC by Trevor Gross
Modified: 2022-06-17 01:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.