The following commit has been merged in the master branch:
commit 1a70b90c7694023898ff32cdecc2e4fe1a13dc35
Author: Raphael Geissert <[email protected]>
Date:   Mon Oct 22 02:47:58 2012 -0500

    checkbashisms: detect use of $FUNCNAME, $TMOUT, and $TIMEFORMAT
    
    Signed-off-by: Benjamin Drung <[email protected]>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 55f93cc..356ecff 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -644,6 +644,11 @@ sub init_hashes {
        qr'\$\{?SHELLOPTS\}?\b'       => q<$SHELLOPTS>,
        qr'\$\{?PIPESTATUS\}?\b'      => q<$PIPESTATUS>,
        qr'\$\{?SHLVL\}?\b'           => q<$SHLVL>,
+       qr'\$\{?FUNCNAME\}?\b'        => q<$FUNCNAME>,
+       qr'\$\{?TMOUT\}?\b'           => q<$TMOUT>,
+       qr'(?:^|\s+)TMOUT='           => q<TMOUT=>,
+       qr'\$\{?TIMEFORMAT\}?\b'      => q<$TIMEFORMAT>,
+       qr'(?:^|\s+)TIMEFORMAT='      => q<TIMEFORMAT=>,
        qr'<<<'                       => q<\<\<\< here string>,
        $LEADIN . qr'echo\s+(?:-[^e\s]+\s+)?\"[^\"]*(\\[abcEfnrtv0])+.*?[\"]' 
=> q<unsafe echo with backslash>,
        qr'\$\(\([\s\w$*/+-]*\w\+\+.*?\)\)'   => q<'$((n++))' should be '$n; 
$((n=n+1))'>,

-- 
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