wayneeseguin/rvm — Issue #788: 'rvm use' writes errors to stdout when requested version is missing
Author: duncan-bayne
Created: 2012-02-28 01:22:49+00:00
State: open

When rvm encounters certain errors (e.g. invalid command line arguments) it writes them to stderr.

However, when the requested Ruby version is missing, it writes the resultant error to stdout:

$ rvm use 1.8.6 1> stdout.txt 2> stderr.txt
---------------------------------------------------------------------------------------
(devmac-9) (12:20:47) ~ ruby-1.8.6-p420
$ cat stdout.txt
ruby ruby-1.8.6-p420 is not installed.
To install do: 'rvm install ruby-1.8.6-p420'
---------------------------------------------------------------------------------------
(devmac-9) (12:20:49) ~ ruby-1.8.6-p420
$ cat stderr.txt

Shouldn't it be using stderr in this case too?