Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 18:06:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248632] x11/mons: libshlist doesn't work with BSD sed
Message-ID:  <bug-248632-7788@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: cem@freebsd.org
                CC: rob@sarcasticadmin.com
                CC: rob@sarcasticadmin.com
             Flags: maintainer-feedback?(rob@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.)

--=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-248632-7788>