Skip to content

OS.execute cannot capture shell output #79

Open
@fidasx

Description

@fidasx

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions