Specs for IO.popen
Reported by Adam Wiggins | April 20th, 2008 @ 03:01 PM | in 1.0 preview
Basic specs for IO.popen: read from a pipe, write to a pipe. Read passes, write doesn't (my next task is going to be to make it pass). Write spec is tagged fail, both pass on MRI.
One caveat: I used "echo" and "cat" as the pipe commands. These seem pretty likely to be supported most everywhere, but technically it is a platform dependency - is there are better way to do this?
Comments and changes to this ticket
-
Adam Wiggins April 20th, 2008 @ 03:34 PM
Based on feedback from irc channel, wrapped a guard for win32 around the write spec. Apparently even MRI does not support writing to pipes there.
-
Federico Builes April 20th, 2008 @ 04:16 PM
- → State changed from new to resolved
Commit was applied in 10df9f89189 with a minor correction to add a guard to MinGW as suggested by Luis Lavena.
Thanks!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
