[SCM] Git repository for devscripts branch, master, updated. v2.11.6-18-g1d83778
James McCoy
jamessan at debian.org
Sat May 5 16:10:08 UTC 2012
The following commit has been merged in the master branch:
commit 57b9f8eefaac6bf1298c300377f782252b274078
Author: Raphael Geissert <geissert at debian.org>
Date: Thu Apr 19 23:46:19 2012 -0500
checkbashisms: detect substr expansion with dynamic length (Closes: #610465)
diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 8840d55..3c92700 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -576,7 +576,7 @@ sub init_hashes {
%string_bashisms = (
qr'\$\[[^][]+\]' => q<'$[' should be '$(('>,
- qr'\$\{\w+\:\d+(?::\d+)?\}' => q<${foo:3[:1]}>,
+ 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[/str]}>,
--
Git repository for devscripts
More information about the Devscripts-devel
mailing list