Skip to content

is this the right module for this code? #20

@ufobat

Description

@ufobat

I am not sure whether this is the right module for this piece of code. But I am looking for your advice.

On Windows I run into trouble because run() does not work as I expected it from my linux boxes.

Example: on the windows shell you can invoke prove ..... and it works, but with run() you can't because it in fact it is a prove.bat that you're invoking.

So it is hard to write platform independend code. (e.g. skaji/mi6#40) This piece is stolen from zef.

my @run-invoke = BEGIN $*DISTRO.is-win ?? <cmd.exe /x/d/c>.Slip !! '';
sub zrun(*@_, *%_) is export { run (|@run-invoke, |@_).grep(*.?chars), |%_ }

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