Skip to content

Posix Run Arguments Not Passed Directly to the Application #5957

@A1029384756

Description

@A1029384756

Context

latest Odin master commit. this has persisted for quite some time

Issue Description

given the following program:

package demo

import "core:fmt"
import os "core:os/os2"

main :: proc() {
	fmt.println(os.args)
}

odin run . -- 'print("foo")' should output ["executable_path", "print("\foo\")"]
(printing os.args[1] outputs print("foo"))

this is seemingly caused by run args on posix being processed with run_args_string = string_join_and_quote(heap_allocator(), run_args);. ideally, there would be zero processing done by the compiler here and the run args would be completely transparently passed to the running application

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions