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

Feature request: Implement Kernel.exec #152

Open
geoff-nixon opened this issue Dec 5, 2014 · 5 comments
Open

Feature request: Implement Kernel.exec #152

geoff-nixon opened this issue Dec 5, 2014 · 5 comments

Comments

@geoff-nixon
Copy link

I was looking for a way to add Kernel.system, Kernel.`, to mruby/mruby, and eventually I found mruby-xquote and mruby-syscommand, but then I remembered your fork, and it seems you have these! But I am having trouble finding the code where this is implemented. (I don't think you're using those mgems...)

Could you kindly show me where this code is?
How difficult do you think it would be to implement Kernel.exec as well?

@tsahara
Copy link
Member

tsahara commented Dec 5, 2014

We divided iij/mruby into many mrbgems (list of them is on README.md). Our implementation of Kernel.system was moved to https://github.com/iij/mruby-process and Kernel.`` was moved to https://github.com/iij/mruby-io . We don't have Kernel.exec` but I think it would be easy.

@geoff-nixon
Copy link
Author

Awesome, thank you! Yes, I did see the list of your mrbgems (which are great!), but I was confused, as I thought mruby-process/mruby-io would only contain items from the Process/IO method/class.

Unfortunately, the MRI code for Kernel.exec differers from Kernel.system more than I thought, and my [lib]c skills are not up to the task.

So can I politely turn this into a feature request for Kernel.exec in either mrbgem, that would be awesome.

@geoff-nixon geoff-nixon changed the title How does iij/mruby implement Kernel.system, backticks? Feature request: Implement Kernel.exec Dec 5, 2014
@geoff-nixon
Copy link
Author

Also, it might be worth documenting that these (and perhaps there are other miscellaneous modules?) are in these other mrbgems for people like me.

@zzak
Copy link

zzak commented Oct 20, 2015

FWIW I think @jkutner was working on this: jkutner/mruby-process@82f70ac

@jkutner
Copy link

jkutner commented Oct 20, 2015

I was but I need more windows support, so I ended up rolling my process execution code into mruby-jvm.

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

4 participants