Subject: [PATCH 3/5] checkbashisms: detect the use of 'command' with options other than -p

From: Raphael Geissert <[email-masked]>
Date: Thu, 27 May 2010 10:01:23 -0500

Options -v and -V are only part of the "User Portability Utilities"
part of SUSv3.

Signed-off-by: Raphael Geissert <[email-masked]>
---
 scripts/checkbashisms.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 3b487d0..f3f4ff4 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -548,6 +548,7 @@ sub init_hashes {
 	qr';;?&' =>  q<;;& and ;& special case operators>,
 	$LEADIN . qr'jobs\s' =>  q<jobs>,
 #	$LEADIN . qr'jobs\s+-[^lp]\s' =>  q<'jobs' with option other than -l or -p>,
+	$LEADIN . qr'command\s+-[^p]\s' =>  q<'command' with option other than -p>,
     );
 
     %string_bashisms = (
-- 
1.7.1