www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/07/14/22:47:12

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Wed, 15 Jul 2015 04:46:33 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: "Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] Re: geda-gaf on FreeBSD and probably other
architectures
In-Reply-To: <20150714210811.15037.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1507150443050.6924@igor2priv>
References: <20150714103959 DOT GA17565 AT localhost DOT localdomain> <20150714140911 DOT GA18818 AT localhost DOT localdomain> <20150714143415 DOT 18024 DOT qmail AT stuge DOT se> <alpine DOT DEB DOT 2 DOT 00 DOT 1507141725200 DOT 6924 AT igor2priv> <20150714210811 DOT 15037 DOT qmail AT stuge DOT se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019