open-watcom/open-watcom-v2 — pull request #108 by ArmstrongJ (2014-10-28 12:41:15+00:00)
Title: Wmake meta-character fix on Windows

Wmake had been using a somewhat naive method on Windows to determine if a path contained "meta characters." If meta characters, which include "<>|&()" for Windows, are detected, it would force the make command to be executed via the shell. However, the above would cause a failure if the command were one that is intercepted by wmake, i.e. *rm*, and the path contained parentheses. For example:

```
clean: .SYMBOLIC
rm -f "build (32)\output.o"
```

The above path is perfectly valid on Windows, but wmake would assume the parentheses imply a variable of some sort, causing execution to pass to the Windows command shell where *rm* isn't a valid command. The above command should be intercepted and handled by wmake.

I've changed the *hasMetas()* routine to perform a relatively basic check for quotes around possible meta characters before deciding the command has any present.