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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 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: > > >/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! 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