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 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: 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" To: 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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: >> >> >> /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. >> >> >> 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