Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this the right module for this code? #20

Open
ufobat opened this issue Dec 25, 2018 · 1 comment
Open

is this the right module for this code? #20

ufobat opened this issue Dec 25, 2018 · 1 comment

Comments

@ufobat
Copy link
Member

ufobat commented Dec 25, 2018

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), |%_ }
@tadzik
Copy link
Collaborator

tadzik commented Jan 21, 2019

Sounds like a good fit imho. It's not a shell command on linux, but from the looks of it it seems to be one on windows :)

If it makes the module more useful then I'm all for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants