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

Bug#265281: lintian: warns for possible bashism when using sed



Package: lintian
Version: 1.23.2
Severity: normal

hi,

lintian reports a possible bashism in the maintainer scripts where i use
sed to fetch the python version:

from pythonPV-mysqldb.postinst:

PV=`echo $PACKAGE | sed -n -e '/^python.*-/{s,python\([0-9][0-9.]*\)-.*,\1,p}'`

lintian reports:

W: python2.3-mysqldb: possible-bashism-in-maintainer-script postinst:8 
					'/{s,python\([0-9][0-9.]*\)-.*,\1,p}'
N:
N:   This script is marked as running under /bin/sh, but it seems to use a
N:   feature found in bash.
[...]

in my eyes there's no need for bash as the script is sed, and can be run
by any shell we provide in /etc/shells.

bye
 jonas


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-rc2-i386
Locale: LANG=C, LC_CTYPE=de_DE@euro

Versions of packages lintian depends on:
ii  binutils                      2.15-1     The GNU assembler, linker and bina
ii  diffstat                      1.34-1     produces graph of changes introduc
ii  file                          4.10-3     Determines file type using "magic"
ii  gettext                       0.14.1-5   GNU Internationalization utilities
ii  man-db                        2.4.2-19   The on-line manual pager
ii  perl [libdigest-md5-perl]     5.8.4-2    Larry Wall's Practical Extraction 

-- no debconf information



Reply to: