[SCM] Git repository for devscripts branch, master, updated. v2.12.4-55-g9e10e6c

Benjamin Drung bdrung at debian.org
Fri Oct 26 12:00:40 UTC 2012


The following commit has been merged in the master branch:
commit 882ff22d379f533bf0b8770afbeff838dc5248dc
Author: Raphael Geissert <geissert at debian.org>
Date:   Tue Oct 23 12:46:30 2012 -0500

    checkbashisms: improve the "'function' is useless" check
    
    Similar to 1b292022 in that it matches other characters.
    
    Signed-off-by: Benjamin Drung <bdrung at debian.org>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 5cf9152..4bf0404 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -563,7 +563,7 @@ sub script_is_evil_and_wrong {
 sub init_hashes {
 
     %bashisms = (
-	qr'(?:^|\s+)function \w+(\s|\(|\Z)' => q<'function' is useless>,
+	qr'(?:^|\s+)function [^<>\(\)\[\]\{\};|\s]+(\s|\(|\Z)' => q<'function' is useless>,
 	$LEADIN . qr'select\s+\w+' =>     q<'select' is not POSIX>,
 	qr'(test|-o|-a)\s*[^\s]+\s+==\s' => q<should be 'b = a'>,
 	qr'\[\s+[^\]]+\s+==\s' =>        q<should be 'b = a'>,

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list