[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#494450: [checks/scripts] problems with the read bashism test



Package: lintian
Version: 1.24.3
Severity: normal

checks/scripts throws Perl warnings:

$ lintian -Cscripts tcpquota_1.6.15-12.1_all.deb 
W: tcpquota: possible-bashism-in-maintainer-script postrm:49 '		read -p " Remove databases? [y/N]" s'
W: tcpquota: read-in-maintainer-script postrm:49
W: tcpquota: possible-bashism-in-maintainer-script postrm:68 '		read -p " Remove databases? [y/N]" s'
W: tcpquota: read-in-maintainer-script postrm:68
Use of uninitialized value $match in concatenation (.) or string at /usr/share/lintian/checks/scripts line 693, <C> line 47.
W: tcpquota: possible-bashism-in-maintainer-script postinst:47 ''
W: tcpquota: read-in-maintainer-script postinst:47
Use of uninitialized value $match in concatenation (.) or string at /usr/share/lintian/checks/scripts line 693, <C> line 67.
W: tcpquota: possible-bashism-in-maintainer-script postinst:67 ''
W: tcpquota: read-in-maintainer-script postinst:67
W: tcpquota: deprecated-chown-usage postinst:113 'chown msql.msql'
W: tcpquota: read-in-maintainer-script postinst:193
Use of uninitialized value $match in concatenation (.) or string at /usr/share/lintian/checks/scripts line 693, <C> line 245.
W: tcpquota: possible-bashism-in-maintainer-script postinst:245 ''
W: tcpquota: read-in-maintainer-script postinst:245
W: tcpquota: command-with-path-in-maintainer-script postinst:248 /usr/sbin/update
Use of uninitialized value $match in concatenation (.) or string at /usr/share/lintian/checks/scripts line 693, <C> line 261.
W: tcpquota: possible-bashism-in-maintainer-script postinst:261 ''
W: tcpquota: read-in-maintainer-script postinst:261

For reference, here the affected lines:
    47			read -p "Would you like to reconfigure? [y/N] " s

    67			read -p "Would you like to restart TCPQuota now [Y/n] " s

   245		read -p "Would you like to have TCPQuota started at bootup? [Y/n] " s

   261		    read -p "Would you like to start TCPQuota now [y/N] " s

Gruesse,
	Frank Lichtenheld


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  diffstat            1.45-2               produces graph of changes introduc
ii  dpkg-dev            1.14.20              Debian package development tools
ii  file                4.25-1               Determines file type using "magic"
ii  gettext             0.17-3               GNU Internationalization utilities
ii  intltool-debian     0.35.0+20060710.1    Help i18n of RFC822 compliant conf
ii  libparse-debianchan 1.1.1-2              parse Debian changelogs and output
ii  libtimedate-perl    1.1600-9             Time and date functions for Perl
ii  liburi-perl         1.35.dfsg.1-1        Manipulates and accesses URI strin
ii  man-db              2.5.2-2              on-line manual pager
ii  perl [libdigest-sha 5.10.0-12            Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
ii  binutils-multiarch  2.18.1~cvs20080103-7 Binary utilities that support mult
ii  libtext-template-pe 1.44-1.2             Text::Template perl module
ii  man-db              2.5.2-2              on-line manual pager

-- no debconf information



Reply to: