diff --git a/spec/v0.1.md b/spec/v0.1.md index bb10f16..0b1a986 100644 --- a/spec/v0.1.md +++ b/spec/v0.1.md @@ -210,14 +210,6 @@ Full path: ### Blocking -#### system(cmd) - -Executes a command, returns exit code. - -```fun -system("ls -l") -``` - #### exec(cmd) Executes a command, returns stdout. @@ -226,9 +218,7 @@ Executes a command, returns stdout. string result = exec("date") ``` -### Non-Blocking - -#### nsystem(cmd) +#### system(cmd) Executes a command, returns exit code. @@ -236,6 +226,8 @@ Executes a command, returns exit code. system("ls -l") ``` +### Non-Blocking + #### nexec(cmd) Executes a command, returns stdout. @@ -252,6 +244,14 @@ Executes a command asynchronously, returns process ID. number pid = nspawn("sleep 10") ``` +#### nsystem(cmd) + +Executes a command, returns exit code. + +```fun +system("ls -l") +``` + ### Helpers #### wait(pid)