The following commit has been merged in the master branch:
commit 9de50c0440b3b350c683d8fb4a89bb1e6ea1f011
Author: Raphael Geissert <[email protected]>
Date: Thu Nov 1 01:11:20 2012 -0600
checkbashisms: check for use of non-standard tilde expansion
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 c9329b7..1e10eff 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -630,6 +630,7 @@ sub init_hashes {
$LEADIN . qr'(?:exit|return)\s+--' => q<'exit --' should be 'exit'
(idem for return)>,
$LEADIN . qr'sleep\s+(?:-|\d+(?:[.a-z]|\s+\d))' => q<sleep only takes
one integer>,
$LEADIN . qr'hash(\s|\Z)' => q<hash>,
+ qr'(?:[:=\s])~(?:[+-]|[+-]?\d+)(?:[/\s]|\Z)' => q<non-standard tilde
expansion>,
);
%string_bashisms = (
--
Git repository for devscripts
_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel