[Swift-devel] New built-in system, request for comments

Yadu Nand yadudoc1729 at gmail.com
Fri Apr 4 12:08:50 CDT 2014


Hi,

I have just added a new builtin "system" to trunk. It takes a string,
which is executed in the shell
by java and the results are returned as an array. This is done to make
mappings easier, for example,
you can map an entire folder "foo" using the following :

file folder[ ] < array_mapper; files = system ("find foo -type f") >;

If the execution of the string provided fails, the logger would report
the the exitcode and stderr to
the swift stdout.

Thanks,
Yadu Nand B



More information about the Swift-devel mailing list