Package: devscripts Version: 2.10.49 Severity: normal User: [email protected] Usertags: checkbashisms Tag: patch
Hi, checkbashisms fails to recognise the following bashism: 8<---------->8 source ~/.tex2imrc 8<---------->8 Attached patch fixes it. It might be a good idea to review the other regexes as well, but don't have time to do that now. Cheers, -- Raphael Geissert - Debian Maintainer www.debian.org - get.debian.net
diff --git usr/bin/checkbashisms tmp/checkbashisms
index 40cffc9..b4a308e 100755
--- usr/bin/checkbashisms
+++ tmp/checkbashisms
@@ -538,7 +538,7 @@ sub init_hashes {
%singlequote_bashisms = (
$LEADIN . qr'echo\s+(?:-[^e\s]+\s+)?\'[^\']*(\\[\\abcEfnrtv0])+.*?[\']' => q<unsafe echo with backslash>,
- $LEADIN . qr'source\s+[\"\']?(?:\.\/|\/|\$|[\w.-])[^\s]+' =>
+ $LEADIN . qr'source\s+[\"\']?(?:\.\/|\/|\$|[\w.~-])[^\s]+' =>
q<should be '.', not 'source'>,
);
signature.asc
Description: This is a digitally signed message part.

