delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/23/15:22:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50
X-Spam-Check-By: sourceware.org
From: "Flint, Paul" <Paul DOT Flint AT state DOT vt DOT us>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Wed, 23 Nov 2011 15:21:36 -0500
Subject: An AWK-ward problem...
Message-ID: <0124A9436EBA7D4D84E25C4CCB0F9AAF01AA593FEE71@ENT-MAILBOX02.vsms.state.vt.us>
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pANKLv51015846

Greetings List lurkers,

I have been troubleshooting some new bash script that I wrote and wanted (for some reason :^) to run on an NT box.

So the struggle began...

Anyway I get the oddest error:

<snip>
/cygdrive/c/Program Files/Git/bin/awk: line 7: $'\r': command not found
/cygdrive/c/Program Files/Git/bin/awk: line 7: $'\r': command not found
warning: LF will be replaced by CRLF in sendjcl.log.
<snap>

So... I check my code and check my code... soon the problem begins to drive me mad...

Then!

I do this from a cygwin ver 2.761 terminal...

$cd /c/cygwin/bin
$dos2unix awk

Now awk works!

The version of Cygwin I am using is 

Thought I would pass this on.

Paul Flint, (802) 828-4262
Office of the System Administrator
Vermont Department of Labor

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