[Gloucs] FAQ generation tool

Paul Broadhead lug at twinmoons.clara.co.uk
Fri Oct 1 21:46:25 BST 2004


Thomas Adam <thomas at edulinux.homeunix.org> wrote:

> On Fri, Oct 01, 2004 at 09:22:51PM +0100, Paul Broadhead wrote:
> > Thomas Adam <thomas at edulinux.homeunix.org> wrote:
> > > #! /usr/bin/bash env
> > > # Generate FAQs from simple text files
> > > 
> > > That she-bang line is not standard.
> > 
> > Is there a standard one?  My usage comes from the kit I use at work.
> > Some, non-Linux Unix machines which have bash installed in various
> > places.
> 
> If that's the case, you're either not using Linux, or the sysadmin there needs
> replacing. #!/usr/bin/bash env doesn't even make sense, let alone work. I
> suspect what you really meant is:
> 
> !#/usr/bin/env bash

As I said the machines I refer to at work ARE running an old Unix NOT
Linux.  However, you have spotted my deliberate mistake, that was what I
intended to write.  I'll soon release version 0.0.000002.alpha to fix
that.  While testing I was running the script using <bash faqgen.bash>
so I didn't notice.

> But this is completely superfluous, even if you did intend for it to be
> written as such. If bash is not residing in /bin, then there is something
> seriously wrong. Indeed, the magic(2) definitions for such listings dictate
> and support this.

See above about non Linux machines.  On these bash is installed, like it
or not, at /usr/local/bin/bash.

Have you written your own version yet.  May be I can offer some feedback
on that....

Paul



More information about the gloucs mailing list