Bug#322848: lintian: false positive on possible bashism
Package: lintian
Version: 1.23.11
Severity: normal
While checking my package I got these:
W: devhelp: possible-bashism-in-maintainer-script preinst:5 '[ "$1" = "upgrade" -o '
W: devhelp: possible-bashism-in-maintainer-script postrm:16 '&>'
W: devhelp: possible-bashism-in-maintainer-script postrm:17 '&>'
The first one is a real problem, but the other two are not. The
significant lines are:
rmdir /etc/emacs/site-start.d > /dev/null 2&>1 || true
rmdir /etc/emacs > /dev/null 2&>1 || true
I believe lintian may be confusing that with simply using >&. I tried
that kind of redirection on dash and surveyed #debian-devel. IIRC that
kind was used exactly because of being POSIX compliant.
Thanks,
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Versions of packages lintian depends on:
ii binutils 2.16.1-2 The GNU assembler, linker and bina
ii diffstat 1.39-1 produces graph of changes introduc
ii file 4.12-1 Determines file type using "magic"
ii gettext 0.14.5-2 GNU Internationalization utilities
ii intltool-debian 0.30+20040213 Help i18n of RFC822 compliant conf
ii libparse-debianchangelog-p 0.6-1 parse Debian changelogs and output
ii man-db 2.4.3-1 The on-line manual pager
ii perl [libdigest-md5-perl] 5.8.7-4 Larry Wall's Practical Extraction
lintian recommends no packages.
-- no debconf information
Reply to: