This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] opts.sh & posix


Nathan Sidwell wrote:-

> I've installed this patch which gets opts.sh working in the face of
> POSIXLY_CORRECT.

I'm not sure of the difference between Posix and SUS, but SUS has
this:

RS
    The first character of the string value of RS shall be the input
    record separator; a <newline> by default. If RS contains more than
    one character, the results are unspecified. If RS is null, then
    records are separated by sequences consisting of a <newline> plus
    one or more blank lines, leading or trailing blank lines shall not
    result in empty records at the beginning or end of the input, and a
    <newline> shall always be a field separator, no matter what the
    value of FS is.

This may be a bug in your gawk.  It's certainly a widespread extension
that is not specific to gawk.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]