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

Bug#536397: lintian: False positive with command-with-path-in-maintainer-script



On Thu, 2009-07-09 at 09:58 -0700, Russ Allbery wrote:
> Stefan Fritsch <sf@sfritsch.de> writes:
> > chmod `dpkg-statoverride --list /usr/sbin/apache2 | cut -f 3` /usr/sbin/apache2
> 
> This is a bug in $LEADIN that causes it to catch things immediately
> after the *closing* backtick in a backtick expression.  This will also
> affect checkbashisms in devscripts.
> 
> I think the fix is to change:
> 
>     our $LEADIN = qr'(?:(?:^|[`&;(|{])\s*|(?:if|then|do|while)\s+)';
> 
> to:
> 
>     our $LEADIN = qr'(?:(?:^|[&;(|{]|^[^`]*`)\s*|(?:if|then|do|while)\s+)';
> 
> but I'm not sure and could use more review.

I can't find any obvious issues with it from a few tests, fwiw.

Adam



Reply to: