Skip to content

MLtonWorld.load fails unless the binary was invoked with a full path #628

@jmaessen

Description

@jmaessen

MLtonWorld.load works by attempting to invoke the same binary using CommandLine.name(). For a binary on PATH on most unix systems this yields just the binary name. But Posix.Process.exec requires the path to the binary. On Linux systems there's a fast workaround which is to use /proc/self/exe, but this isn't portable. A quick Google suggests this wants some kind of portable "Get path to current binary" functionality.

(See

let val c = CommandLine.name ()
)

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