blob: f840c8dcd3abbc754c695821f1cb3e1d345a1588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module main
import os
fn exec(args []string) {
os.execve('/bin/bash', args, []) or {
// eprintln(err)
panic(err)
}
}
fn main() {
// exec(["-c","find /"]) //works
exec(['-c', 'find /tmp/']) // here it works as well
// exec(["-c","find","/tmp/"]) // does not work I guess is normal
}
|