Date: Sun, 12 Jul 2020 12:09:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247931] sed "y" command bracket balancing check Message-ID: <bug-247931-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247931 Bug ID: 247931 Summary: sed "y" command bracket balancing check Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: lhoursquentin@gmail.com When using the "y" command, it seems like square bracket balancing is requi= red. Square brackets should instead be treated like any other character in the "= y" cmd context, as they are already at the time of doing the actual character replacement: sh$ echo | sed 'y/[/x/' sed: 1: "y/[/x/": unbalanced brackets ([]) sh$ echo | sed 'y/[]/xy/' sed: 1: "y/[]/xy/": unbalanced brackets ([]) sh$ echo | sed 'y/[a]/xyz/' sh$ echo '][a' | sed 'y/[a]/xyz/' zxy --=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-247931-227>