bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Gettextize: using functions?


From: Paul Jarc
Subject: Re: Gettextize: using functions?
Date: Wed, 01 May 2002 16:48:00 -0400
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu)

address@hidden (Tim Mooney) wrote:
> In article <address@hidden>,
> Andreas Schwab <address@hidden> wrote:
>> address@hidden (Tim Mooney) writes:
>>>> In any case, if autoconf (or the GNU coding standards) is going to relax 
>>>> its
>>>> stance on shell functions, I would suggest that the documentation be very
>>>> explicit about using the older function style
>>>>
>>>>    foo() {
>>>>    }
>>>>
>>>> vs. the newer style supported by Korn/Bash/POSIX shells,
>>>>
>>>>    function foo {
>>>>    }
>>
>> It's the other way round: POSIX uses the 'foo ()' syntax, and 'function
>> foo' has unspecified effect.
>
> I'm not sure I understand.

POSIX defines the meaning of the "foo()" syntax, and does not define
the meaning of the "function foo" syntax.  It happens to be the case
that the shells that recognize the "function foo" syntax are the newer
shells - the same ones that also (attempt to) adhere to POSIX.  But
these features are orthogonal; recognition of "function foo" is an
*extension* to POSIX compliance, not a consequence of it.

That's all trivia, though.  The important (and good) fact is that no
one is claiming that "function foo" is recognized by older shells or
that it should be used by autoconf.


paul



reply via email to

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