[Bug 253893] sed "/^\s*$/d" complains about trailing backslash (\)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 Jan 2025 21:48:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253893

Eric <erichanskrs@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erichanskrs@gmail.com

--- Comment #26 from Eric <erichanskrs@gmail.com> ---
(in reply to comment #2)
(in reply to comment #11)

The incorrect/inconsistant handling of \s versus [:space:] also affects
grep(1):

[0](0) # uname -a
FreeBSD q210 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412
GENERIC amd64
[1](0) # grep --version
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
[2](0) # echo 'a b' | grep '[a\s]b'
[3](1) # echo 'a b' | grep '[a[:space:]]b'
a b

If deemed appropriate, I'll gladly open a new PR for this.

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