mcandre / toys

code demos for newbies
https://github.com/mcandre/toys
30 stars 6 forks source link

set powershell as make interpreter in comspec environments #361

Closed mcandre closed 7 months ago

mcandre commented 1 year ago

If possible, set powershell as the interpreter on COMSPEC environments, so that more commands like rm based cleanup tasks are able to get further.

Confirm which UNIX rm flags are supported in powershell.

mcandre commented 7 months ago

Actually more trouble than it's worth.

Software projects more frequently use sh (particularly bash) synta in makefile commands than PowerShell.

Also, the make.exe implementations for Windows tend to default to a sh[.exe] interpreter.

Also, POSIX advises against customizing the interpreter from within a makefile configuration.