Menu

#19 -v rejected as POSIX compliant flag to `command`

open
nobody
None
5
2020-05-09
2020-05-09
mcandre
No

checkbashisms is erroneously reporting -v flag as non-POSIX.

$ checkbashisms bin/cop
possible bashism in bin/cop line 20 ('command' with option other than -p):
command -v "$COMMAND" 2>/dev/null || echo ''

In fact:

https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.