diff --git a/contrib/ri b/contrib/ri index 29cc229d..5615a020 100644 --- a/contrib/ri +++ b/contrib/ri @@ -1,6 +1,6 @@ # ri completion for Ruby documentation by Ian Macdonald # -# $Id: ri,v 1.5 2003/12/31 08:18:08 ianmacd Exp $ +# $Id: ri,v 1.6 2003/12/31 08:47:38 ianmacd Exp $ # ri_get_methods() { @@ -41,8 +41,8 @@ _ri() COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} - # which version of ri are we using? ri_path=$(type -p ri) + # which version of ri are we using? # -W0 is required here to stop warnings from older versions of ri # from being captured when used with Ruby 1.8.1 and later ri_version="$(ruby -W0 $ri_path -v 2>&1)" || ri_version=integrated