public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jason McGee <goodmis@hotmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: GAWK Incorrect Data Display
Date: Sat, 19 Dec 2020 23:34:39 +0000	[thread overview]
Message-ID: <DM6PR12MB2922892E5E2BE6301BDAC818BBC20@DM6PR12MB2922.namprd12.prod.outlook.com> (raw)

I confirmed there is not a problem with my code by comparing Cygwin against Gawk for Windows.

sp_array[++ sp_count] = d_quote "SP" d_quote ", " ticket "," d_quote type ", " volume ", " price ", " 0

I’m reading a file and writing the data to an array.

I’ve tried multiple variations are the problem is certainly in the Cygwin code.

The output is messed up if I have more than 7 variables.

Thanks

cygwin
$ gawk -f PROCESS_INGOT.awk ingot.txt
, 0                    01, 3686.3
                     0.01, 3686.3, 3680.0

Gawk for Windows
C:\cygwin64\home\trading_scripts>gawk -f PROCESS_INGOT.awk ingot.txt
"SP", 2183197,"SELL, 0.01, 3686.3, 0
"SP", 2183197,"SELL, 0.01, 3686.3, 3680.0


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


             reply	other threads:[~2020-12-19 23:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19 23:34 Jason McGee [this message]
2020-12-19 23:51 ` Jason McGee
2020-12-20  0:16 ` Hans-Bernhard Bröker
2020-12-20 12:19   ` Norton Allen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR12MB2922892E5E2BE6301BDAC818BBC20@DM6PR12MB2922.namprd12.prod.outlook.com \
    --to=goodmis@hotmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).