Subject: [PATCH 03/14] checkbashisms: detect the use of [^] instead of [!]

From: Raphael Geissert <[email-masked]>
Date: Mon, 10 May 2010 01:45:34 -0500

Closes: #497489

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 6715aa4..182c531 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -517,6 +517,7 @@ sub init_hashes {
 	$LEADIN . qr'(sh|\$\{?SHELL\}?) -[rD]' => q<sh -[rD]>,
 	$LEADIN . qr'(sh|\$\{?SHELL\}?) --\w+' =>  q<sh --long-option>,
 	$LEADIN . qr'(sh|\$\{?SHELL\}?) [-+]O' =>  q<sh [-+]O>,
+	qr'\[\^[^]]+\]' =>  q<[^] should be [!]>,
     );
 
     %string_bashisms = (
-- 
1.7.1