godotjs / godotjs/javascript

OS.execute cannot capture shell output

未关闭
#79 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug enhancement good first issue
主要语言
C++
星标
1.1k
派生
80
PR 合并指标
30 天内没有已合并 PR

描述

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 []
}
```

贡献指南

打开贡献指南

调研方向

Start at the OS.execute entry point shown in the TypeScript example and reproduce `sh -c ls` from `_ready()`, checking how the output array is populated. Done means command-line output is available through `arr` rather than producing an empty array.

由索引模型根据 Issue 内容生成。

评估

技术栈
godot, shell, typescript
领域
cli, operating-systems
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。