[swift-corelibs-dev] Better integration with UNIX tools

Brent Royal-Gordon brent at architechies.com
Sun Nov 19 22:03:37 CST 2017

> On Nov 19, 2017, at 7:01 PM, Abhi Beckert <me at abhibeckert.com> wrote:
> First of all, I disagree with Brent's assessment that we shouldn't have a variant that "simply shells out". Even though this use case is "discouraged" in other languages, I think in practice it definitely has a place.

If you really want to do this, you can do it through the array-based API by calling `sh` with the arguments `["-c", yourCommand]`. This makes it slightly less convenient than the safe API, which is a *feature*, because we want people to reach for the safer API.

Brent Royal-Gordon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20171119/b24c04a3/attachment.html>

More information about the swift-corelibs-dev mailing list