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

Use open4 for execute command. #26

Open
alloy opened this issue Jul 5, 2012 · 3 comments
Open

Use open4 for execute command. #26

alloy opened this issue Jul 5, 2012 · 3 comments

Comments

@alloy
Copy link
Owner

alloy commented Jul 5, 2012

No description provided.

@mikz
Copy link
Collaborator

mikz commented Aug 16, 2013

@alloy do you remember why?

@alloy
Copy link
Owner Author

alloy commented Aug 16, 2013

This must be the worst ticket I have made in my life. Sorry about that.

I think this is because of having one solid way on all Rubies to be able to do properly synced stdout & stderr output to the terminal (i.e. not only once the command ends execution) and also buffer that output. Starting from MRI 1.9 the Spawn mod has some good options, but those are not available on MRI 1.8.7 which shipped with OSX 10.8.x.

@Manfred
Copy link
Collaborator

Manfred commented Aug 16, 2013

Yes, this was because of two reasons.

  1. Stop buffering output, instead immediately stream it to the terminal (see Utils#_execute)
  2. Support both stdout and stderr at the same time

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

3 participants