Date: Sun, 21 Aug 2022 07:31:21 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263478] awk: syntax error in regular expression $^ Message-ID: <bug-263478-227-bkWZNpIltW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-263478-227@https.bugs.freebsd.org/bugzilla/> References: <bug-263478-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263478 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 suc= h 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' re= alm 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 line. Those are my thoughts anyways. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263478-227-bkWZNpIltW>