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

Re: Advice about Lintian errors



On 2010-05-30 19:31 +0200, Tanguy Ortolo wrote:

> Le dimanche 30 mai 2010, Sven Joachim a écrit :
>> On 2010-05-30 19:03 +0200, Tanguy Ortolo wrote:
>> > Le dimanche 30 mai 2010, Sven Joachim a écrit :
>> >> I think the autojump.* files should not have shebang lines, because it
>> >> would be rather pointless to run them directly.  If you remove the
>> >> shebang lines and make the files non-executable, Lintian should stop
>> >> complaining.  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        
>> >
>> > … and compain instead about shell scripts without shabangs…
>> 
>> Do you place them in $PATH ?  That would be wrong then.
>
> No, I do not, but I make them executable, and Lintiant detects:
                ^^^^^^^^^^^^^^^^^^^^^^^^^^      
> W: autojump: executable-not-elf-or-script ./usr/share/autojump/autojump.zsh
> W: autojump: executable-not-elf-or-script ./usr/share/autojump/autojump.bash
>
> Maybe I should not make them executable.

Yes, that's what I wrote…

> What are the conventions in such a case?

You make scripts executable if and only if they have a shebang line.

Sven


Reply to: