Bug#717256: [checkbashisms] command -vV are erroneously marked as bashisms

Olof Johansson olof at ethup.se
Thu Jul 18 12:48:47 UTC 2013


Package: devscripts
Version: 2.12.6
Severity: normal
Tags: patch

Hi,

The checkbashisms script seems to erroneously mark 'command -v' and
'command -V' as bashisms. According to [1], these are well specified
flags (with the caveat: "On  systems  supporting  the  User
Portability Utilities option." (UP)), and indeed, supported by at least
bash, dash, zsh and busybox ash (posh on the other hand does not
support it).

While UP may be optional for strict POSIX conformity, Debian Policy
mandates that /bin/sh must implement SUSv3, where UP is a requirement
(if I understand correctly).

My proposed patch removes the check, and updates the unit tests to
make sure they are not reported as bashisms.


1: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html



Regards,
-- 
 --------------------------------------------------------------- 
| Olof Johansson                              http://stdlib.se/ |
|  irc: zibri                           https://github.com/olof |
 --------------------------------------------------------------- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-checkbashisms-command-supports-vVp-according-to-POSI.patch
Type: text/x-diff
Size: 2499 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130718/f13a0c28/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130718/f13a0c28/attachment.sig>


More information about the devscripts-devel mailing list