X-Recipient: archive-cygwin@delorie.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
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;	charset="utf-8"
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@ENT-MAILBOX02.vsms.state.vt.us> <20111124091711.GJ21190@calimero.vinschen.de>
From: "Lemke, Michael  SZ/HZA-ZSW" <lemkemch@schaeffler.com>
To: <cygwin@cygwin.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
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

