`runCommandWith`: Why is the `passAsFile` attribute defined so circuitously?

Thank you for confirming that the two variants are identical in function, and for putting it in historical and architectural context! As for that pattern, I wasn’t aware of it (and, as far as I know, these are conventions that emerged over time and are not documented anywhere).

Readability is a subjective quality (e.g., my preferred style of indentation would probably make others frustrated), and looking up other examples of the “removeAttrs-in-the-end” pattern, I get it now; runCommandWith is just too simple to show its benefits.

I think these are good examples: