[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: offtopic on awk [was: Re: Metatables]
- From: David Jones <drj@...>
- Date: Thu, 28 Feb 2002 10:42:49 +0000
In message <200202280003.VAA08283@lua.tecgraf.puc-rio.br>, Luiz Henrique de Fig
> Perhaps FOO == awk ?
> (and then you'll
> be cloning the behaviour of awk, which allows a=0 and a=1 simultaneously).
GNU awk may allow that but it is not standard.
Line 6068 - 6069 of IEEE Std 1003.1-2001 "Standard for Information
Technology Portable Operating System Interface (POSIX) Shell and
Utilities, Issue 6" (the bit describing the behaviour of awk) says:
The same name shall not be used within the same
scope both as a scalar variable and as an array.