Package: devscripts
Version: 2.9.20
Tags: patch
Followup-For: Bug #378406

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Attached is a patch to implement the desired behavior.  I tried it on
two scripts; /usr/bin/beagle-search (which contains an 'exec -a') and
/usr/bin/artsdsp (which contains an 'exec' but without a flag), and
both worked as expected.

- -- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-amd64-k8-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages devscripts depends on:
ii  debianutils                   2.17       Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.21    package building tools for Debian
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  perl                          5.8.8-6.1  Larry Wall's Practical Extraction 
ii  sed                           4.1.5-1    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.5.10     Gives a fake root environment

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFE5UG1Aud/2YgchcQRAgC2AKCB96sQDitD4fr5BbAK6Ce48G/yYACfXHLI
y7ZZLObwK07Lu5N+JulxNug=
=Q9ue
-----END PGP SIGNATURE-----
--- checkbashisms.pl~   2006-08-18 00:18:33.419039250 -0400
+++ checkbashisms.pl    2006-08-18 00:21:27.853940750 -0400
@@ -113,7 +113,8 @@
                '[^\\\]\{([^\s]+?,)+[^\\\}\s]+\}',     # brace expansion
                '(?:^|\s+)\w+\[\d+\]=',      # bash arrays, H[0]
                '[EMAIL PROTECTED]',   # bash arrays, ${name[0|*|@]}
-               '(?:^|\s+)(read\s*(?:;|$))'  # read without variable
+               '(?:^|\s+)(read\s*(?:;|$))', # read without variable
+               'exec\s+-[acl]'              # options to exec
            );
 
            for my $re (@bashism_regexs) {

Reply via email to