The following commit has been merged in the master branch:
commit 5ced72e30d49ce44fb9c7ec556fc9b256ffbbb0d
Author: Raphael Geissert <[email protected]>
Date: Thu May 27 10:00:02 2010 -0500
checkbashisms: detect the use of the 'jobs' built-in
The jobs built-in is only part of the "User Portability Utilities."
Additionally add a commented-out check for calls to 'jobs' with options
other than those specified by SUSv3.
Signed-off-by: James Vega <[email protected]>
diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 645295a..3b487d0 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -546,6 +546,8 @@ sub init_hashes {
$LEADIN . qr'printf\s+-v' => q<'printf -v var ...' should be
var='$(printf ...)'>,
$LEADIN . qr'coproc\s' => q<coproc>,
qr';;?&' => q<;;& and ;& special case operators>,
+ $LEADIN . qr'jobs\s' => q<jobs>,
+# $LEADIN . qr'jobs\s+-[^lp]\s' => q<'jobs' with option other than -l or
-p>,
);
%string_bashisms = (
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].