As you know, “gem install mongrel -y” presents this:
Select which gem to install for your platform (i686-linux)
- mongrel 0.3.12.4 (ruby)
- mongrel 0.3.12.4 (mswin32)
- mongrel 0.3.12.3 (mswin32)
- mongrel 0.3.12.3 (ruby)
Is there any way to reliably do this non-interactively?
echo “1” | gem install mongrel -y
does not work, because the proper choice may be 1 or 2 for (ruby) - it’s
inconsistent between versions and various gems.
Please don’t say, “use expect”