The following commit has been merged in the master branch:
commit 66d19eec8d6cf580adea9c1bcf07e7dd09365518
Author: Raphael Geissert <[email protected]>
Date:   Mon May 10 01:45:34 2010 -0500

    checkbashisms: detect the use of [^] instead of [!]
    
    Closes: #497489
    
    Signed-off-by: Raphael Geissert <[email protected]>
    Signed-off-by: James Vega <[email protected]>

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 = (

-- 
Git repository for devscripts


-- 
To unsubscribe, send mail to [email protected].

Reply via email to