checkbashisms: fails to detect shell wrappers (was: Re: List of packages shipping shell scripts with bashisms + MBF proposal)
Luis Rodrigo Gallardo Cruz wrote:
> On Wed, Jan 30, 2008 at 11:49:23PM +1100, Hamish Moffatt wrote:
>> On Tue, Jan 29, 2008 at 07:58:05PM -0600, Raphael Geissert wrote:
>> > libguilegtk-1.2-dev
>> False alarm: the /usr/bin/build-gtk-guile script is actually in guile,
>> but has a quick shell wrapper at the top. checkbashisms is fooled.
> Same case for /usr/bin/sawfish-client in sawfish.
> Is there some quick way this kind of thing could be detected?
This sounds more like a report against checkbashisms.
I guess it could try to detect these:
> exec guile -s $0 $*
> exec rep "$0" "$@"
> !#;; Source file: sawfish-client.jl
By the way, why don't just use a shebang like #!/usr/bin/guile ?