[Bug 248632] x11/mons: libshlist doesn't work with BSD sed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 12 18:06:30 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248632

            Bug ID: 248632
           Summary: x11/mons: libshlist doesn't work with BSD sed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: cem at freebsd.org
                CC: rob at sarcasticadmin.com
                CC: rob at sarcasticadmin.com
             Flags: maintainer-feedback?(rob at sarcasticadmin.com)

mons installs a helper library called libshlist.  Its list_insert operation
does not work with BSD sed 'i'.

$ echo 1 2 3 | sed '1ifoobar'    # BSD sed
sed: 1: "1ifoobar": command i expects \ followed by text

$ echo 1 2 3 | gsed '1ifoobar'   # GNU sed
foobar
1 2 3

$ echo 1 2 3 | sed '1i\
foobar '                         # BSD sed again
foobar 1 2 3

Aliasing sed to gsed on FreeBSD (and adding a port dependency on gsed) fixes
it; currently I've hacked in a:

sed() {
  gsed "$@"
}

definition to my copy of mons so that it works.

(This manifests as "mons" producing the sed error message above ("command i
expects \ followed by text"), and then printing Monitors: 0 and some
gibberish.)

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


More information about the freebsd-ports-bugs mailing list