On 2016-09-06 13:08:51 -0400, Tom Lane wrote:
> Dash is considered a character that needs quoting. It might be possible
> to avoid that if we could be certain that appendShellString's output would
> never be placed in a spot where it could be taken for a switch, but that
> seems like a large assumption to me. Or maybe we could treat it as
> forcing quotes only if it starts the string; but I don't personally care
> enough to write the code for that. Feel free if you want to.
But quotes are interpreted by the shell, not by the called program. So I
don't think putting --whatnot in quotes changes anything here?