Hi Eric,

> > ! gnulib-tool (GNU $package $date)$version
> 
> Oops - some over-active copy-n-paste.

Oh, indeed :-)

> And this falls foul of autoconf's advice:
> http://www.gnu.org/software/autoconf/manual/autoconf.html#Shell-Functions
> | Inside a function, IRIX sh sets `$0' to the function name. 

Confirmed with IRIX 6.5 /bin/sh.

> OK to check in this followup?

Thanks for cleaning up all this. I would like if you could mention the newly
added implicit parameter 'progname' in comments for all functions which need
it, directly or indirectly:

# Input:
# - progname        name of this program

It is not possible to maintain a shell script with dozens of functions
without keeping track of which function uses which variable and which has
side effects on which variables.

Bruno



Reply via email to