delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/24/05:03:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: An AWK-ward problem...
Date: Thu, 24 Nov 2011 11:02:18 +0100
Message-ID: <CC0D9E8456BA41488A76AFE4E8F3A36902A52E86@de011305.de.ina.com>
In-Reply-To: <20111124091711.GJ21190@calimero.vinschen.de>
References: <0124A9436EBA7D4D84E25C4CCB0F9AAF01AA593FEE71 AT ENT-MAILBOX02 DOT vsms DOT state DOT vt DOT us> <20111124091711 DOT GJ21190 AT calimero DOT vinschen DOT de>
From: "Lemke, Michael SZ/HZA-ZSW" <lemkemch AT schaeffler DOT com>
To: <cygwin AT cygwin DOT com>
X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1
X-SEF-Processed: 7_3_0_01170__2011_11_24_11_02_19
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id pAOA3BkI004993

>On November 24, 2011 10:17 AM Corinna Vinschen wrote:
>
>On Nov 23 15:21, 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!
>
>I don't believe in this solution:
>
>- /cygdrive/c/Program Files/Git/bin/awk is apparently the name of a
>  shell script.  /cygdrive/c/Program Files/Git/bin/awk is certainly
>  not /bin/awk.

Actually, this looks like you aren’t running cygwin at all.  Did you
install msys git?  That would install a rudimentary set of unix tools
compiled with mingw, the default path is exactly as in your error
message.  Check your path settings.

Michael

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019