On Thu, 11 Jun 2020 11:50:48 +0100 Stuart Henderson wrote: > On 2020/06/11 11:48, Charlene Wendling wrote: > > >Synopsis: FS pattern separation issue > > >Category: awk > > >Environment: > > System : OpenBSD 6.7 > > Details : OpenBSD 6.7-current (GENERIC.MP) #258: Wed > > Jun 10 20:46:20 MDT 2020 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > > > Architecture: OpenBSD.amd64 > > Machine : amd64 > > >Description: > > > > In the latest awk we're proposing, FS pattern separation > > does not work properly and makes neofetch fail to properly get > > the screen resolution: > > > > $ xrandr --nograb --current | awk -F 'connected |\+|\(' '/ > > connected/ && $2 {printf $2 ", "}' > > ed primary 1920x1080+0+0 (normal left inverted right x axis y axis) > > 521mm x 293mm, > > It would be better to show the exact text fed into awk, xrandr depends > on the machine you run it on. > > For all the old versions I get this with your command: > > illegal primary in regular expression connected |+|( at |( >
You're right, and i don't know why but some escapes in my command vanished. I'm attaching a shell test case that will compare with mawk and gawk if they're available.
awk_testcase
Description: Binary data
