[swift-corelibs-dev] Better integration with UNIX tools
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-corelibs-dev