darcyparker/syntastic — comment on commit 18834a35877b756049b0c241de750d8e17f0eff0
File:  line 0
By darcyparker:

This feels like a cleaner alternative. No if statement. Now using shellescape() to correctly wrap arguments that have spaces in them with double quotes.

Note: shellescape() needs to be called for each argument rather than the whole makeprg statement so that it knows which spaces are argument delimiters and which spaces are supposed to belong to an individual argument.