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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to