[Bug 253893] sed "/^\s*$/d" complains about trailing backslash (\)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 27 14:41:25 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253893
Bug ID: 253893
Summary: sed "/^\s*$/d" complains about trailing backslash (\)
Product: Base System
Version: 13.0-STABLE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: freebsd at schukraft.org
After an upgrade from 12.2 to 13.0-BETA3, python's virtualenvwrapper stopped
working with a sed error. Source seems to be a pipeline akin to this:
> echo test/bin/activate | tr "\n" " " | sed "s|/bin/activate |/|g" | tr "/" "\n" | sed "s/^\s*$/d"
sed: 1: "/^\s*$/d": RE error: trailing backslash (\)
If I mount the 12.2 boot environment and replace the sed calls in the above
with /tmp/be<RANDOM>/usr/bin/sed, it works, as it has on 12.2:
> echo test/bin/activate | tr "\n" " " | /tmp/be_mount.6Hlw/usr/bin/sed "s|/bin/activate |/|g" | tr "/" "\n" | /tmp/be_mount.6Hlw/usr/bin/sed "/^\s*$/d"
test
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list