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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+3qORESThaAKQSkOEe/x9/
Date: Wed, 23 Nov 2011 15:26:51 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: An AWK-ward problem...
Message-ID: <20111123202651.GA25373@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0124A9436EBA7D4D84E25C4CCB0F9AAF01AA593FEE71 AT ENT-MAILBOX02 DOT vsms DOT state DOT vt DOT us>
MIME-Version: 1.0
In-Reply-To: <0124A9436EBA7D4D84E25C4CCB0F9AAF01AA593FEE71@ENT-MAILBOX02.vsms.state.vt.us>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Wed, Nov 23, 2011 at 03:21:36PM -0500, Flint, Paul wrote:
>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!

Right.  awk doesn't want CRLF line endings.  Remember that Cygwin is a
linux-like environment.  Linux doesn't always deal well with Windows
line endings either.

cgf

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