autoconf-patches
[Top][All Lists]
Advanced

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

Re: 01-as-require-shell-fn.patch


From: Akim Demaille
Subject: Re: 01-as-require-shell-fn.patch
Date: Thu, 20 Nov 2003 15:54:28 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 > This is the resurrection of the first patch to add shell functions.  This
 > adds m4sh support for shell functions, and the corresponding test case.

The reason I'm not really in favor of this patch is that M4sh has a
loop to select the "best" candidate shell to run the script.
Currently it selects the "best" shell based on LINENO support.  I
believe that the proper means to implement shell function support in
M4sh would be the converse: look for a shell that supports functions,
and then check that it supports LINENO.

This does cause a problem: there are two flavors of M4sh scripts, two
flavors of AS_INIT.  As a first step, we could introduce
AS_INIT_WITH_FUNCTIONS as a twin of AS_INIT, but which would select a
shell supporting functions.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]