Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Provide a way to run commands without escaping issues #63

@talex5

Description

@talex5

mirage/mirage-skeleton#147 does:

Functoria_app.Cmd.run "rm -f %s/disk.img" dir

This is unsafe if dir contains spaces or other special characters. Functoria should provide an alternative that doesn't go via the shell.

Lwt_process and Unix.create_process take arrays instead.
Bos.Cmd makes command-lines abstract to acheive the same thing:
https://github.com/dbuenzli/bos/blob/78bd66169f401e6ebf6347cd903cc2f1c3f0b7f8/src/bos.mli#L115

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