bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf adding ^M to field at the end of the line


From: Aharon Robbins
Subject: Re: printf adding ^M to field at the end of the line
Date: Sun, 04 Nov 2007 05:34:18 +0200

Greetings.  Please try to set your mailer to post in plain
text instead of in HTML for messages to the GNU mailing lists.

That said, concerning this:

> Date: Fri, 02 Nov 2007 10:22:04 -0700
> From: "Lenz, Andrew John" <address@hidden>
> Subject: printf adding ^M to field at the end of the line
> To: address@hidden
>
> I'm running gawk-3.1.5-14.e15 on CentOS 5. "printf" it is adding an
> extra ^M to the last field of the Line.  I don't what this to happen.

You should report a bug to the creators of CentOS.

> I run the same awk scripts through cygwin gwak 3.1.6-1 and this does
> not happen.

Which is correct.

> I can't find 3.1.6 for LINUX does it exists?

You can build it from source.  If you have GCC and GNU Make installed,
run the following from a shell window:

        wget ftp://ftp.gnu.org/gnu/gawk/gawk-3.1.6.tar.gz
        tar -xpzvf gawk-3.1.6.tar.gz
        cd gawk-3.1.6
        ./configure && make && make check

After the tests have run, as root:

        # cd /wherever/gawk-3.1.6
        # make install

I do my development on a GNU/Linux system; all the tests should pass
on PC based hardware.

Good luck,

Arnold




reply via email to

[Prev in Thread] Current Thread [Next in Thread]