X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DDD82384242D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rogers.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=michel DOT labarre AT rogers DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1595872245; bh=cUR4TSNXoRgaMt2ZdklKSoAOn2ffOR70LHbTDveGDzQ=; h=From:To:References:In-Reply-To:Subject:Date:From:Subject; b=l3g09Q4isczxS3V8SbQbG1Hoa8ViNB1R82rTIE9KALFiP7tra46Dg/Y/9FJuV/FipYjs5AqOCNVxYzrvCj+c7I9Xbtu/kMJdS0TkOgslFNkixSQTg2sLUg0pFf4RyHrWsRjHaUeagDPRsSAn7t2WB2QfZYAmpjo0CBbYVo1okgAa1kvdnZ8AF/wMj7kl8e+EiP0OSXGRSLRuljkAqeKFdWt3+RzD+H9j3ybXjKhtotxQXLaDdywjuSiGh6ez0t7NgutpBo+Bww0nys2+LiapK/0WPRYl0UnwG52uTgP1ndDFKg44t01FX/QXmnmrc5zG4LI3a5SVdC8DKZ3QCqiJNg== X-YMail-OSG: Uu1cqtUVM1mgbo2OkHaROO.EJws_YMFVmlAFBH53VchQ2TTJK64rdgspaOIkPEB 3UKz9J0wLLdrFziCKjJkzDHhWFn0qXka64n_VHT5aax5kHsDcpvzB3FoqpHZ4PNVBQSNTK8egNrH U6vv6X.p26bM.0jx1NcigPHwMobXrTXyhdsG33qDpCM0V8mZWII5R9MXhJSwqbmZXVpX6Y_hI6cH eeW3mvPKcrFHRlGOuErBkTzIPYofsJV7y1XORaTOCYDqT89Uj_usIq5dHR2GzQzebdaBjIs8sLgL iNqSw_ssWmNcHhBAcgsnq5Lj2nqaOeUoh2ConAb44FbXYijNpw.IJyqhZD1rr2x5eEsb5eCecD9p ufAxOGLApNIlEnW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0eu59OUyo20cDdghPFv5u6g-- From: "Michel LaBarre" To: , "'Bryan VanSchouwen'" , References: <1729e34a-245c-2e87-6604-bebf8e08d62b AT cs DOT umass DOT edu> In-Reply-To: <1729e34a-245c-2e87-6604-bebf8e08d62b@cs.umass.edu> Subject: RE: Problem with output from gawk software in recent Cygwin installation Date: Mon, 27 Jul 2020 13:50:39 -0400 Message-ID: <000601d6643e$7153de00$53fb9a00$@rogers.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Content-Language: en-us Thread-Index: AQGlN1epYkvAOTZkSo8fBXKp7VvqTgImfejmqWzXkTA= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" > -----Original Message----- > From: Cygwin [mailto:cygwin-bounces AT cygwin DOT com] On Behalf Of Eliot Moss > Sent: July 27, 2020 12:52 PM > To: Bryan VanSchouwen; cygwin AT cygwin DOT com > Subject: Re: Problem with output from gawk software in recent Cygwin > installation > > 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. [Michel LaBarre] Better yet, how about an example using manifest constants in a one line sample to eliminate impact of arrays or changes in input data as in: gawk 'BEGIN {print(1,2,3)}' or gawk 'BEGIN {print(1,2,3) > "xxx.txt"}' > > Best - EM > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple