public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* GAWK Incorrect Data Display
@ 2020-12-19 23:34 Jason McGee
  2020-12-19 23:51 ` Jason McGee
  2020-12-20  0:16 ` Hans-Bernhard Bröker
  0 siblings, 2 replies; 4+ messages in thread
From: Jason McGee @ 2020-12-19 23:34 UTC (permalink / raw)
  To: cygwin

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-20 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19 23:34 GAWK Incorrect Data Display Jason McGee
2020-12-19 23:51 ` Jason McGee
2020-12-20  0:16 ` Hans-Bernhard Bröker
2020-12-20 12:19   ` Norton Allen

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).