RS ^-anchoring needs to know if it's reading the first record of a file.
authormillert <millert@openbsd.org>
Mon, 19 Apr 2021 14:08:55 +0000 (14:08 +0000)
committermillert <millert@openbsd.org>
Mon, 19 Apr 2021 14:08:55 +0000 (14:08 +0000)
commit0a102a4532d3c0c03c930590b30513cd98a0ae6b
treeb75545b3673c7729dae459cf4f1868071d763138
parentcee623ccd7642a1c73ce99110ce82a853cff7630
RS ^-anchoring needs to know if it's reading the first record of a file.
Without this fix, when reading the first record of an input file named
on the command line, the regular expression engine will be
misconfigured, precluding a successful match.  From Miguel Pineiro Jr
usr.bin/awk/lib.c