Previously, the test didn't work because '\' characters appeared in the sed string, causing bogus escape characters to form in the substituted string literal. Switching to using '%/p' causes the path to be emitted with '/' characters instead, so that there are are no escaping issues.
|1 ↗||(On Diff #199260)|
Use single quotes? BTW, I'm curious what backslashes in single quotes do (in the expanded sed -e 's,SRC_COMPDIR,%p/Inputs,g') do on Windows...