Subject: [PATCH 18/18] checkbashisms: detect the use of the hash utility

From: Raphael Geissert <[email-masked]>
Date: Wed, 24 Oct 2012 19:08:51 -0500

It is an XSI extension in SUSv3. Bash implements even more options.

Signed-off-by: Raphael Geissert <[email-masked]>
---
 scripts/checkbashisms.pl |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 5653c5a..63cf510 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -628,6 +628,7 @@ sub init_hashes {
 	$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>,
+	$LEADIN . qr'hash(\s|\Z)' =>     q<hash>,
     );
 
     %string_bashisms = (
-- 
1.7.10