Popen and bzip2

pipe = IO.popen(‘bzip2 -cd /home/dave/article.xml.bz2’, ‘r’)

always gives me:

bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /home/dave/article.xml.bz2, output file = (stdout)

when the program completes. I have tried pipe.close, pipe.close_read. I
can read lines from the pipe which is all i want to do, but I don’t get
why this error is coming up.

Thanks!

Dave

always gives me:

bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /home/dave/article.xml.bz2, output file = (stdout)

Sorry I think this was my mistake. If I run it in Radrails I get this
but on the cmd line I don’t have the problem so this may be an IDE
artifact.