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

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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
37 ↗(On Diff #75679)

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.