Subject: [PATCH 1/4] checkbashisms: detect the use of 'setvar'

From: Raphael Geissert <[email-masked]>
Date: Mon, 14 Feb 2011 21:20:00 -0600

'setvar' is a built-in from ash that was dropped from dash at some
point. bash doesn't support it either.
---
 scripts/checkbashisms.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 647a712..2c995cd 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -569,6 +569,7 @@ sub init_hashes {
 	$LEADIN . qr'jobs\s' =>  q<jobs>,
 #	$LEADIN . qr'jobs\s+-[^lp]\s' =>  q<'jobs' with option other than -l or -p>,
 	$LEADIN . qr'command\s+-[^p]\s' =>  q<'command' with option other than -p>,
+	$LEADIN . qr'setvar\s' =>  q<setvar 'foo' 'bar' should be eval \$'foo' 'bar'>,
     );
 
     %string_bashisms = (
-- 
1.7.9.1