godotjs / godotjs/javascript

OS.execute cannot capture shell output

Open
#79 5 comments 0 reactions 0 assignees View on GitHub
bug enhancement good first issue
Dominant language
C++
Stars
1.1k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

executing applications works fine like xterm for example or firefox
but i cannot get the shell output from command line apps like ls

```ts
_ready() {
let args = new godot.PoolStringArray(["-c", "ls"])
let arr = []
godot.OS.execute("sh", args, true, arr)

godot.print(arr) // prints empty []
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.