Some update in the v0.1 spec.
This commit is contained in:
parent
39a48d5ddf
commit
187e90b91b
1 changed files with 11 additions and 11 deletions
22
spec/v0.1.md
22
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue