Author: adam-guest
Date: 2008-05-14 18:26:25 +0000 (Wed, 14 May 2008)
New Revision: 1447

Modified:
   trunk/scripts/checkbashisms.pl
Log:
Nicer regex for $[

Modified: trunk/scripts/checkbashisms.pl
===================================================================
--- trunk/scripts/checkbashisms.pl      2008-05-14 18:06:12 UTC (rev 1446)
+++ trunk/scripts/checkbashisms.pl      2008-05-14 18:26:25 UTC (rev 1447)
@@ -386,7 +386,7 @@
        $LEADIN . 'exec\s+-[acl]' =>    q<exec -c/-l/-a name>,
        $LEADIN . 'let\s' =>            q<let ...>,
        '(?<![\$\(])\(\(.*\)\)' =>     q<'((' should be '$(('>,
-       '\$\[' =>                      q<'$[' should be '$(('>,
+       '\$\[[^][]+\]' =>              q<'$[' should be '$(('>,
        '(?:^|\s+)(\[|test)\s+-a' =>            q<test with unary -a (should be 
-e)>,
        '\&>' =>                       q<should be \>word 2\>&1>,
        '(<\&|>\&)\s*((-|\d+)[^\s;|)`&\\\\]|[^-\d\s])' =>



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to