I'd like to use the same pkg_add command across multiple OpenBSD versions
however installing ruby brings up an interactive choice between 1.8, 1.9, 2.0,
2.1.
I've tried the fuzzy match "-z ruby-1.9" however it doesn't appear to match
version.
This works, but it's not desirable if it can be done native.false | pkg_add
ruby 2>&1 | perl -n -e 'print `pkg_add $&` if $_ =~ /ruby-1.9[\w\.]+/'
Thanks,Brad

Reply via email to