Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <20020909200547.17184.qmail@web20009.mail.yahoo.com> Date: Mon, 9 Sep 2002 13:05:47 -0700 (PDT) From: Joshua Daniel Franklin Subject: Re: Gawk cr/lf problem To: Pieter Prinsloo Cc: cygwin AT cygwin DOT com In-Reply-To: <3D7CFD53.000001.01168@pexy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Pieter Prinsloo wrote: > Hi. > > Let me get this straight. > > 1) Whoever writes the program files using whatever editor in windows. > 2) Now before we can use those program files it must > first be converted using dos2unix? > 3) Now what will be the next step?? > Before we use windows text files we have to convert them like we did 10 > years ago, when we used awk in a *nix environment? > 4) I fail to see this point. Why should the program files be > in *nix format - will this eventually apply to other > source files like "C" as well? > 5) Now we have to physically QA each source program file > to make sure its in *nix format on winbloze machines! > 6) Why change the concept of using M$ dos terminated files > as is? > > Please bear with me - I do NOT like M$. > But I do not understand this change in the behaviour of awk. > > -------Original Message------- > > From: Joshua Daniel Franklin > Date: Monday, 09 September, 2002 21:41:38 > To: pietp DOT pexy AT megawan DOT net; cygwin AT cygwin DOT com > Subject: Re: Gawk cr/lf problem > > > But - ALL my program-files created with DOS type editors > > and ending in CR/LF now give problems. > > gawk comes back with error 'invalid char' for each ^M. > > I have to manually remove the CR at the end of each line to get it to work > > > ... > > > Am I missing something? > > Yes. dos2unix from the cygutils package. > It will automatically convert your old files for you. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > . __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/