Page MenuHomeFreeBSD

Fix libdtrace build with zsh as /bin/sh
ClosedPublic

Authored by arichardson on Aug 11 2020, 3:44 PM.

Details

Summary

When zsh runs in POSIX sh mode it does not support the -e flag to echo.
Use printf instead of echo to avoid the "-e" characters being printed.

Obtained from: CheriBSD

Diff Detail

Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 32916
Build 30314: arc lint + arc unit

Event Timeline

arichardson retitled this revision from [UPSTREAM] Fix libdtrace build with zsh as /bin/sh to Fix libdtrace build with zsh as /bin/sh.Aug 11 2020, 3:45 PM
cddl/contrib/opensolaris/lib/libdtrace/common/mkerrno.sh
35

We can actually just drop the pragma ident. That's an old Solaris thing. Upstream (illumos) removes them whenever they modify files. The line following the copyright can be deleted as well. Ditto for the other files below.

This revision is now accepted and ready to land.Aug 11 2020, 4:07 PM
This revision was automatically updated to reflect the committed changes.