[Bug 209449] Buildworld fails because of malformed sed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 15 08:17:42 UTC 2016


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

--- Comment #1 from tschweikle at gmail.com ---
sed: 1: "s/^[1-9].*$/.&/": bad flag in substitute command: 's'
sed: 1: "s|@g@||g": bad flag in substitute command: 's'

in both cases the command expands:

sed -e 's/@g@/$(g)/g' \
    -f $(SH_DEPS_SED_SCRIPT) \
    -e $(SH_SCRIPT_SED_CMD)

$(g) expands to something like "/s", sed then reads: 's/@g@//s/g' reporting
only the first wrong flag after the third '/'.

same for "$(SH_SCRIPT_SED_CMD)": as far as i dug in this expands to
's/<someting>/<something>/s|@g@||g'

for whatever reason the reported "s/^[1-9].*$/.&/" and "s|@g@||g" are not the
subtitute commands the error is in!

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


More information about the freebsd-bugs mailing list