Mail Archives: geda-user/2015/07/14/22:47:12
On Tue, 14 Jul 2015, Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com] wrote:
> gedau AT igor2 DOT repo DOT hu wrote:
>>> Does the awk program work also with GNU awk -c and/or awk on OS X and
>>> *BSD?
>>
>> That would only convert a "not all systems have GNU date (or GNU binutils)
>> by default" problem into a "not all systems have GNU awk" problem, IMO.
>
> -c
> --traditional
> Run in compatibility mode. In compatibility mode, gawk behaves
> identically to Brian Kernighan's awk; none of the GNU-specific
> extensions are recognized. See GNU EXTENSIONS, below, for more
> information.
>
This does not solve the problem at all.
The problem is that strftime() in awk is gnu-awk specific. Once you use
that function, the user has to have gnu awk installed on his system. My
point is requiring gnu awk is not better than requiring gnu date, so you
didn't get closer to working on non-gnu systems.
That awk -c or --traditional is only a way that may help you testing your
awk scripts, to find out that strftime() is a no-go. It does not solve the
original problem.
Btw, I do agree that removing the need for strftime is a better solution
(but it's still worth thinking over all the above, for other
compile-time-dependency cases)
Regards,
Igor2
- Raw text -