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

Re: List of packages shipping shell scripts with bashisms + MBF proposal

Raphael Geissert <atomo64+debian@gmail.com> writes:
> Paul Wise wrote:

>> There doesn't seem to be a lintian check for what Raphael has checked
>> for though.  Raphael, perhaps you could submit a bug+patch to lintian
>> if you haven't already?

It's been a wishlist bug in lintian for eons.  What needs to happen from
the lintian perspective is to refactor check/scripts to pull the code for
checking for bashisms into a module, and then apply that same code to
check other shell scripts and to the (detabbed) shell constructs in
debian/rules.  Getting the interface to the module right may be a little

> The script basically uses find on those directories (under /usr/share it
> only searches for '*.sh') and then uses file on those to get a new list
> of those file being shell scripts which are then checked with
> checkbashisms.

lintian shouldn't depend on checkbashisms.  It already has its own
implementation of this code (which from this thread is actually better).

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: