delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/11/02:56:22

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=Ujo8zQA5lTVMJsF9mcZ4siFphGSMb
j4T2Tb5W5deHHKNprxFNn9d4eaVNPA/7NmLAsvNkLu6lE5+QCNtCGCKde+1mAryr
0Saf+PLubmpv6XaNCoUFClkgY3wEDW2SgIs6Ipfzcs1zOL9aWdwACTmf7f2uEhhN
lqgJRTaC3e1zEQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=Usl2EilMYlKw3Gs8rCBZZNFMGbM=; b=UG7
ODbXG4J7XxBkALHrEjseErs1ZvEuBDm+pTJ1/AQp1sKIad/YA1t/lqX+ytDp90Ho
wmTMZXx5Tcr5sZ2sqgEycJbW2oGkrI2hcaEqarDHZk/fTdzS5jzLj8nkvcN//RrY
gNYZt/zzPmlqi4ZCIC56YOcwW7ZLIp17bjWf84xg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=newer, appreciated!, H*c:alternative
X-HELO: mail-wr1-f46.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YEgIFwdtfZmoKZ8e9YYYTJtvWvWAcysdrfr9X/r9Cy8=; b=DfFgqPCrJ6bpORff8hNumKLLeGzwr7XWlZPajqGoKa6ToKsZlcHkUdgoc0J72IiJdS dOIPMG8YajTJsM5T0LS2WTEtNSNJYrxuLMH+i//RwuvLHmY+3Dg9J73ObrSTlDzZ2ek6 rqe3hz81pm9q/s+LhqgACxNIZ0xo1YHEu8CioNJpvwbwVAS2VwQurEKIrDUogusbJWC8 zt0EHpJJMnKAL2dsZ5z0h0NtVtSZWYsndZsdg2VmHzFfiJygeA7VUZWPyzeeANvqgfWV cvTwz1sbbvVEsNutEDI+g5InqGH+flJZEGjh1VDUF03l6RnrNa4K9iYk6BKdQ14kxzPr bhfw==
MIME-Version: 1.0
From: Troy Kenah <troy DOT kenah AT gmail DOT com>
Date: Wed, 11 Sep 2019 16:54:49 +1000
Message-ID: <CAC9BAENxZs7ZwSHz1Xq0DAxP0tS6R4fUQ6Rv_tEG_qrCsOZTew@mail.gmail.com>
Subject: Where is igawk and why doesn't @include replicate this feature?
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Hi All,

I have a large number of scripts that were using the the igawk script,
however I have updated my gawk to a newer release that has
obsoleted/removed the igawk script.

I used to embed @include junk.awk statements to reduce repetitive code but
this no longer works. These were files were not functions, simply code
snippets; this is the type of error I am now seeing:

gawk: get_FY2019Q1OIC.awk:28: @include "../inc/segments.awk"
gawk: get_FY2019Q1OIC.awk:28:  ^ syntax error
gawk: get_FY2019Q1OIC.awk:36:         fromdate=mktime("2019 09 01 00 00 00")
gawk: get_FY2019Q1OIC.awk:36:                         ^ syntax error
gawk: get_FY2019Q1OIC.awk:36:         fromdate=mktime("2019 09 01 00 00 00")
gawk: get_FY2019Q1OIC.awk:36:
 ^ 0 is invalid as number of arguments for mktime

Any help would be much appreciated!



Regards,

Troy Kenah.
0416 273 135

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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