Subject: [PATCH 01/14] checkbashisms: simplify make variables as shell variables

From: Raphael Geissert <[email-masked]>
Date: Mon, 10 May 2010 01:06:41 -0500

Closes: #535368

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

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 64cccdb..0d0f5c8 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -188,6 +188,7 @@ foreach my $filename (@ARGV) {
 	    last if m%^(export )?SHELL\s*:?=\s*(/bin/)?bash\s*%;
 
 	    s/^\t//;
+	    s/(?<!\$)\$\((\w+)\)/\${$1}/g;
 	    s/(\$){2}/$1/;
 	    s/^[\s\t]*@//;
 	}
-- 
1.7.1