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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Apr 2022 00:41:40 UTC

            Bug ID: 263478
           Summary: awk: syntax error in regular expression $^
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: kevin@kevinlocke.name

Using the regular expression $^ as a pattern, for example by running `awk
/$^/`, causes the following error:

    awk: syntax error in regular expression $^ at 
     source line number 1
     context is
             >>> /$^/ <<< 

As far as I can tell, $^ is a valid Extended Regular Expression,[^1] as
expected by awk,[^2] although it is a bit unusual.

I encountered the bug in the ident[^3] script used by jscal-save of the Linux
Console Project and am not aware of any uses likely to affect FreeBSD users. 
Feel free to take it for what you will.


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