[SCM] Git repository for devscripts branch, master, updated. v2.12.4-72-gcf18b4b

Benjamin Drung bdrung at debian.org
Sat Nov 10 23:00:38 UTC 2012


The following commit has been merged in the master branch:
commit 79596bd233e1898dcd4c8480a5cc0fee93e50f25
Author: Raphael Geissert <geissert at debian.org>
Date:   Thu Nov 1 01:23:20 2012 -0600

    checkbashisms: check for case modification expansions
    
    Signed-off-by: Raphael Geissert <geissert at debian.org>
    Signed-off-by: Benjamin Drung <bdrung at debian.org>

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



More information about the devscripts-devel mailing list