On Wed, May 26, 2010 at 09:15:32PM -0700, Philip Guenther wrote:
This behaviour annoyed me when I wanted to do something like
PKG_PATH:=`echo '${PKG_PATH}' | sed -re 's/:?$$/:foo/'`
This works fine with GNU make, but BSD make requires
PKG_PATH:=`echo '${PKG_PATH}' | sed -re 's/:?$$$$/:foo/'`
but also accepts $$$.
Would a patch for this be desirable? I have very limited hacking time,
but I could try to come up with something over the weekend/next week. It
should, of course, be extensively tested before applying.
(OTOH, the current behaviour is sufficiently surprising that I'd expect
any Makefiles not explicitly written for BSD make to assume the GNU
behaviour.)
Joachim