Page MenuHomeFreeBSD

Fix libdtrace build with zsh as /bin/sh
ClosedPublic

Authored by arichardson on Aug 11 2020, 3:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 2:40 AM
Unknown Object (File)
Nov 19 2024, 8:33 PM
Unknown Object (File)
Nov 7 2024, 8:27 PM
Unknown Object (File)
Oct 29 2024, 7:09 AM
Unknown Object (File)
Oct 22 2024, 2:13 PM
Unknown Object (File)
Oct 22 2024, 7:13 AM
Unknown Object (File)
Oct 22 2024, 4:55 AM
Unknown Object (File)
Oct 21 2024, 8:56 PM
Subscribers

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
Lint Not Applicable
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.