Page MenuHomeFreeBSD

Fix libdtrace build with zsh as /bin/sh

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



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

No Linters Available
No Unit Test Coverage
Build Status
Buildable 32914
Build 30312: 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

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.