Author: adam-guest
Date: 2008-04-13 09:03:41 +0000 (Sun, 13 Apr 2008)
New Revision: 1335

Modified:
   trunk/debian/changelog
   trunk/scripts/checkbashisms.pl
Log:
Modify the "2>&foo" check to allow a valid file descriptor followed
by a backslash (for line continuations)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-04-13 09:00:12 UTC (rev 1334)
+++ trunk/debian/changelog      2008-04-13 09:03:41 UTC (rev 1335)
@@ -2,6 +2,8 @@
 
   * checkbashisms:
     + Add experimental makefile support (only enabled if -f is used)
+    + Modify the "2>&foo" check to allow a valid file descriptor followed
+      by a backslash (for line continuations)
   * debchange:
     + Allow a changelog with no entries to be created. (Note that
       such a changelog will cause a warning from dpkg-parsehchangelog the

Modified: trunk/scripts/checkbashisms.pl
===================================================================
--- trunk/scripts/checkbashisms.pl      2008-04-13 09:00:12 UTC (rev 1334)
+++ trunk/scripts/checkbashisms.pl      2008-04-13 09:03:41 UTC (rev 1335)
@@ -185,7 +185,7 @@
                '(?<![\$\(])\(\(.*\)\)' =>     q<'((' should be '$(('>,
                '(\[|test)\s+-a' =>            q<test with unary -a (should be 
-e)>,
                '\&>' =>                       q<should be \>word 2\>&1>,
-               '(<\&|>\&)\s*((-|\d+)[^\s;|)`&]|[^-\d\s])' =>
+               '(<\&|>\&)\s*((-|\d+)[^\s;|)`&\\\\]|[^-\d\s])' =>
                                               q<should be \>word 2\>&1>,
                '(?:^|\s+)kill\s+-[^sl]\w*' => q<kill -[0-9] or -[A-Z]>,
                '(?:^|\s+)trap\s+["\']?.*["\']?\s+.*[1-9]' => q<trap with 
signal numbers>,



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

Reply via email to