[SCM] Git repository for devscripts branch, master, updated. v2.12.4-55-g9e10e6c

Benjamin Drung bdrung at debian.org
Fri Oct 26 12:00:42 UTC 2012


The following commit has been merged in the master branch:
commit 11d3f07291ef83b7c27940154c4d5e217a7ca6f0
Author: Raphael Geissert <geissert at debian.org>
Date:   Wed Oct 24 18:24:01 2012 -0500

    checkbashisms: detect uses of sleep with anything other than an int.
    
    SUSv3 only requires sleep to take a single integer representing the
    number of seconds to sleep.
    
    Signed-off-by: Benjamin Drung <bdrung at debian.org>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 7e60f5c..5653c5a 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -627,6 +627,7 @@ sub init_hashes {
 	$LEADIN . qr'trap\s+["\']?.*["\']?\s+.*(?:ERR|DEBUG|RETURN)' => q<trap with ERR|DEBUG|RETURN>,
 	$LEADIN . qr'(?:exit|return)\s+-\d' => q<exit|return with negative status code>,
 	$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>,
     );
 
     %string_bashisms = (

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list