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

Re: Rationale behind script-not-executable lintian warning

On Wednesday 21 December 2005 18:41, Bas Wijnen wrote:
> On Wed, Dec 21, 2005 at 05:45:43PM +0100, Frank K?ster wrote:
> > It's of course clear that any script in the path should be executable.
> > But if a script is in /usr/share/somewhere, and meant to be used as a
> > "library", it could be that upstream wants to allow both to source and
> > to execute it.
> >
> > So to make lintian happy, I would have to make it executable although I
> > know it will never be executed by Debian programs.  Or I would have to
> > patch the file to remove the shebang line.
> If it is meant to be executed, it should be executable.  

> If it is not, it should not have the shebang line. 

I disagree, there's nothing wrong with clearly documenting what shell 
variant a script is written in, on the contrary IMHO

Also note that lintian already excludes several locations from this warning 
(such as /etc/X11/Xsession.d/). 
Cheers, cobaco (aka Bart Cornelis)
1. Encrypted mail preferred (GPG KeyID: 0x86624ABB)
2. Plain-text mail recommended since I move html and double
    format mails to a low priority folder (they're mainly spam)

Attachment: pgpBVkrZFMSrE.pgp
Description: PGP signature

Reply to: