Skip site navigation (1)Skip section navigation (2)


| raw e-mail | index | archive | help
Everything about this is cursed.  IMO you should propose switching these 
to EREs (-E) and fixing all of the escaped things as appropriate for 
that switch, then substituting [[:space:]] in for \s to make them 
compliant expressions.


> 
> It does not work with BSD sed but when I replace this with gsed all works fine.
> 
> BSD sed complalins about trailinig backslash:
> 
> sed: 1: "s/^\(\s\+\)\(\.init_arr ...": RE error: trailing backslash (\)
> 
> Is there a way to fix that part so it works both with GNU sed and BSD
> sed? The easiest way would be adding ${SEDCMD} set to "gsed" on BSD
> and "sed" for the others (macOS also seems to use gnu sed).
> 

The ports infrastructure also has a BINARY_ALIAS that can be used to 
install gsed as sed for just this build, assuming nothing that uses 
these 'enhanced' expressions hardcodes a path to sed.

Thanks,

Kyle Evans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>