On 2016-08-26 14:38, Adam D. Barratt wrote:
> On 2016-08-26 11:47, Eero Vuojolahti wrote:
>> Secondly, there are no optional flags listed in the 2008/2013 version
>> of the 'command' specification. In the older (2004) standard, the |-v|
>> and |-V| options were part of the 'user portability' subset, not part
>> of the core.
>> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
>
> POSIX 2004 might be "older" but it is the version referenced by Debian
> Policy - as per
> <https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts>:

Debian Policy (4.5.0.0):
https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts
has now changed to follow POSIX.1-2017 (IEEE Std 1003.1-2017):
https://pubs.opengroup.org/onlinepubs/9699919799//utilities/command.html
Where "The command utility is moved from the User Portability Utilities option to the Base".

This makes checkbashisms' rejection of eg 'command -v' a false positive.

--
John

Reply via email to