Bug#473156: [checks/scripts] dash now supports $((cnt+1))
Package: lintian
Version: 1.23.46
Severity: wishlist
Tags: patch
Hi,
dash (finally) gained support for the shell arithmetic construct "$((var
+1))" with the upload of 0.5.4-3 in December 2007 (see #329025).
As lenny contains a version of dash with the support, I've attached a
patch removing the corresponding test from the bashisms section of
checks/scripts.
Regards,
Adam
--- scripts.orig 2008-03-25 19:04:56.000000000 +0000
+++ scripts 2008-03-28 18:15:03.000000000 +0000
@@ -572,7 +572,6 @@
'(<\&|>\&)\s*((-|\d+)[^\s;|\)\`&]|[^-\d])', # should be >word 2>&1
'\[\[(?!:)', # alternative test command
'(?:^|\s+)select\s+\w+', # 'select' is not POSIX
- '\$\(\([A-Za-z]', # cnt=$((cnt + 1)) does not work in dash
'(?:^|\s+)echo\s+-e', # echo -e
'(?:^|\s+)exec\s+-[acl]', # exec -c/-l/-a name
'(?:^|\s+)let\s', # let ...
Reply to: