Problem with output from gawk software in recent Cygwin installation

Eliot Moss
Mon Jul 27 16:51:43 GMT 2020

On 7/27/2020 11:47 AM, Bryan VanSchouwen via Cygwin wrote:
> Hello.
> I just tried executing an awk script using the most recent version of gawk,
> but the output did not turn out the way that it was supposed to.
> This script uses the following command to print the output data to the
> output file:
> print(cai[i], rpi[i], i) >
> "Fit_Height_correln_plot_-_cPuMP_vs_2NH2-cPuMP.dat"
> and previously, this command always printed the values of the three
> variables on a single line, separated by spaces; however, now the gawk
> software is automatically adding hard-returns between the values, resulting
> in the three values being printed on separate lines within the data file.
> What is going on here, and how do I permanently make it stop??

Here's a wondering: Could it have to do with line endings?  If Windows
CRLF is getting in there, then the variables might get a CR in them,
which might do weird things.  This assumes those are string variables,
not numeric.

Best - EM

More information about the Cygwin mailing list