Bug #9004
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
=begin Many unix utilities exit with a code of 1 if any parts of the command fail, in particular ((%rpm%)). `rpm`. I believe its desirable for ((%gem which%)) `gem which` to behave similar to ((%rpm -q%)) `rpm -q` for this use case. # (({# rpm -q man man-1.6f-32.el6.x86_64 # echo $? 0 # 0})) (({# rpm -q man cheese man-1.6f-32.el6.x86_64 package cheese is not installed # echo $? 1 $ 1})) (({$ gem which capistrano /opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano.rb evilensky@Vilensky~/src/puppet/lib/puppet (add-yum-uninstall-to-yum-provider)$ echo $? 0 $ 0})) (({$ gem which capistrano rails /opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano.rb ERROR: Can't find ruby library file or shared library rails $ echo $? 0 =end 0}))