From: Igor Pirnovar Date: 2009-04-21T03:06:56+09:00 Subject: Re: unsubscribe #!/bin/bash if [ $# -eq 0 ]; then version=9 else case $1 in -h|-H) echo "usage: $(basename $0) -8|-9 | [-h]"; exit;; 8|-8) version=8;; 9|-9) version=9;; *) echo Illegal argument; exit;; esac fi if [ $version = 9 ] ;then echo Currently your ruby version is 1.9 rm /usr/bin/ruby ln -s $(which ruby1.9) /usr/bin/ruby rm /usr/bin/irb ln -s $(which irb1.9) /usr/bin/irb else echo Currently your ruby version is 1.8 rm /usr/bin/ruby ln -s $(which ruby1.8) /usr/bin/ruby rm /usr/bin/irb ln -s $(which irb1.8) /usr/bin/irb fi If you installed all versions of your ruby in standard places or if your path is pointing to them as it should, the above code is more appropriate. -- Posted via http://www.ruby-forum.com/.