Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSIX issue 7 (2017) now required #241

Closed
gperciva opened this issue May 19, 2020 · 1 comment
Closed

POSIX issue 7 (2017) now required #241

gperciva opened this issue May 19, 2020 · 1 comment

Comments

@gperciva
Copy link
Member

The recently-added CHECK_POSIX_SH [1] uses command -v. This is widely accepted as the proper answer to "how do I portably check if a command exists" [2], and has been part of our make test since 2016-04-23 [3].

However, -v only became mandatory in issue 7; previously, it was a [UP] User Portability Utilities option [4]. The debian posh shell does not support it, for example. Solaris is inconsistent between the shell built-in command, /usr/bin/command, the man-page, and /usr/xpg4/bin/command (the latter one is fully compatible with POSIX issue 7, as far as I can tell).

I'm still investigating, but thought that I should document the issue.

[1] abb7241
[2] https://stackoverflow.com/a/677212
[3] 4dc4eeb
[4] https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html

@gperciva
Copy link
Member Author

Resolved in #242.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant