[Bug 263478] awk: syntax error in regular expression $^

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Aug 2022 07:31:21 UTC

pprocacci@gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |pprocacci@gmail.com

--- Comment #1 from pprocacci@gmail.com ---
The syntax you provided is syntactically correct, however the result of such a
match is undefined.

An argument could be made that '$^' should parse without error, to which I
actually agree as that follows the grammar as posted by you, but I don't see
how '$^' is useful.

If it's working elsewhere, it's working within that 'undefined behavior' realm
which could change the moment POSIX actually defines $^ as having an actual
meaning.  As of right now, it doesn't.

Perhaps you could say, it means 'end of line' then 'newline' but that doesn't
really make sense because you could anchor on either just a newline or end of

Those are my thoughts anyways.

You are receiving this mail because:
You are the assignee for the bug.