Using find -s will not work with the Linux or MacOS find command. We pipe
to sort instead since the only real requirement here is that the order
stays the same. While I am touching this file I also fixed a == construct
which is not supported by POSIX sh but appears to work on FreeBSD.
Details
Details
- Reviewers
emaste jhb imp bdrewery - Commits
- rS338095: Make mkioctls script work on Linux and MacOS
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 14982 Build 15093: arc lint + arc unit
Event Timeline
Comment Actions
- use grep -q
- make it actually work with pipefail by excluding dangling symlinks. Those would cause egrep to return non-zero and with pipefail fail the whole subshell.
Comment Actions
One last nit, and then I think we're good to go.
lib/libsysdecode/mkioctls | ||
---|---|---|
30–32 | 'env ' can be eliminated here. It's not needed. |