This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gawk 4.1.4: CR separate char for CRLF files
- From: Vermessung AVT - Wolfgang Rieger <w dot rieger at avt dot at>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 16 Aug 2017 12:19:32 +0000
- Subject: Re: gawk 4.1.4: CR separate char for CRLF files
- Authentication-results: sourceware.org; auth=none
Achim Gratz wrote:
Vermessung AVT - Wolfgang Rieger writes:
> Another solution which we have been using for many years now, though
> it might not be feasible for you:
----------------------------- snip --------------------------------
Jannick, another idea I had thought of previously might eventually help:
There is the possibility in awk to include source code by @include "myfile.awk" syntax. I was sometimes thinking of providing a general awk script that could deal with oddities of any kind that could easily be changed just in myfile.awk when necessary, e.g. due to updates. You could even think of an optional environment variable to control which script to include. It should be easy to add such an @include line in all gawk scripts automatically. Did you thing of something like that?
Kind regards,
Wolfgang
--
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