The following commit has been merged in the master branch:
commit 79596bd233e1898dcd4c8480a5cc0fee93e50f25
Author: Raphael Geissert <[email protected]>
Date:   Thu Nov 1 01:23:20 2012 -0600

    checkbashisms: check for case modification expansions
    
    Signed-off-by: Raphael Geissert <[email protected]>
    Signed-off-by: Benjamin Drung <[email protected]>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 1e10eff..d6ac68e 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -638,6 +638,7 @@ sub init_hashes {
        qr'\$\{\w+\:(?:\d+|\$\{?\w+\}?)+(?::(?:\d+|\$\{?\w+\}?)+)?\}' =>   
q<${foo:3[:1]}>,
        qr'\$\{!\w+[\@*]\}' =>           q<${!prefix[*|@]>,
        qr'\$\{!\w+\}' =>                q<${!name}>,
+       qr'\$\{(?:\w+|@|\*)([,^]{1,2}.*?)\}' =>   q<${parm,[,][pat]} or 
${parm^[^][pat]}>,
        qr'\$\{\w+(/.+?){1,2}\}' =>      q<${parm/?/pat[/str]}>,
        qr'\$\{\#?\w+\[[0-9\*\@]+\]\}' => q<bash arrays, ${name[0|*|@]}>,
        qr'\$\{?RANDOM\}?\b' =>          q<$RANDOM>,

-- 
Git repository for devscripts

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to