JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
280 stars 64 forks source link

exec #123

Closed treytomes closed 8 months ago

treytomes commented 8 months ago

exec is a global function with 2 parameters: path and args.

path is path to the process to execute. It should work with either an absolute path or relative to the current working directory.

args defaults to null, in which case nothing will be passed to the child process. If args is a list then that list will be converted to a space-delimited string and passed on to the child process, otherwise args will simply be converted to a string a passed on.

The return value of the child process will be returned to the user.