Skip to content

How to resolve "prog" in PATH? #5

@vog

Description

@vog

The documentation in spawn.mli says:

[prog] is not searched in [PATH]. It is up to the caller to do the path resolution before calling this function.

However, it does not explain how the caller is expected to do that.

There are perhaps many ways to achieve in OCaml, nevertheless I propose that the documentation briefly mentions which method the library author(s) had in mind, and/or which method they are actually using when faced with that task.

Even better would be an actual helper function to resolve that, e.g.

spawn ... ~prog:(resolve_path prog_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