I'm translating a GNU Makefile
into MSBuild
XML.
I have the following sed
command (part of a larger command):
... | sed 's/^Q(.*)/"&"/' | ...
When I execute just that sed
portion in Cygwin
, it "works" in the sense that it doesn't error out.
However, after I've translated it to MSBuild
XML - replaced the XML-sensitive symbols with "
, &
, '
- I get the error
sed: unsupported command '
I'm sure it's not an issue with XML escaping issues; the Visual Studio build log says
Task Parameter:Command="C:\Program Files\GNU ARM Eclipse\Build Tools\2.8-201611221915\bin\sed" 's/^Q(.*)/"&"/' (TaskId:21)
sed: unsupported command ' (TaskId:21)
The command ""C:\Program Files\GNU ARM Eclipse\Build Tools\2.8-201611221915\bin\sed" 's/^Q(.*)/"&"/' " exited with code 1. (TaskId:21)
The command was translated into the originally intended sed 's/^Q(.*)/"&"/'
However, there now appears to be an issue with cmd.exe
.
With respect to cmd.exe
, what part of that command doesn't it like?
Is it the single/double quote? The ampersand?
I'm using the table from here.