Kristof Bastiaensen wrote:
> Indeed, if you call bash with an argument it does.
> But if you call just bash, like in the previous example, it
> doesn't.  Instead of IO.popen("/bin/bash -c command"),
> you could better do just IO.popen("command"), (unless of
> course you want bash specific features).

In my example, I was just using bash as an interactive
program.

Actually I tried bc first, with similarly no luck.

It's not a question about bash or bc, but about popen.


Hal