1
0
Fork 0
forked from fun/fun

Some update in the v0.1 spec.

This commit is contained in:
Johannes Findeisen 2025-09-12 00:17:19 +02:00
commit 187e90b91b

View file

@ -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)