Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2021 13:29:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253893] sed "/^\s*$/d" complains about trailing backslash (\)
Message-ID:  <bug-253893-227-UaqubTkmaC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253893-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253893-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253893

--- Comment #11 from Ed Maste <emaste@freebsd.org> ---
GNU sed:

$ echo 'a b' | gsed 's/\s/-space-/g'
a-space-b

FreeBSD 11:

$ echo 'a b' | sed 's/\s/-space-/g'=20
a b

FreeBSD 12:

$ echo 'a b' | sed 's/\s/-space-/g'=20
a b

FreeBSD 13:

$ echo 'a b' | sed 's/\s/-space-/g'
sed: 1: "s/\s/-space-/g": RE error: trailing backslash (\)

--=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-253893-227-UaqubTkmaC>