I came across this question/answer [execute powershell commands in makefile][1]. I want to execute powershell commands in my makefile. I can run my command in powershell with no issues, but when I execute the command in my makefile, I get a bash syntax error. My code looks like this:
powershell sqlcmd -S testdb -m 1 -W -s "|" -f o:65001 -q ":r test1.sql n:r test2.sql
n:out raw\sql_results.txt'
The error I get is
/usr/bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /usr/bin/sh: -c: line 1: syntax error: unexpected end of file
Do I need to escape the acute symbol before each n:
? Again, powershell handles this syntax fine. Any ideas?
[1]: https://stackoverflow.com/a/51697219/3737798