rvm can not be run with `set -o posix`

servers

Setting up a new Ubuntu 12.04 LTS server I kept getting the error below when trying to run the rvm command.

This was solved by changing the login shell for my user. It prompts for your password and shell which I changed from /bin/sh to /bin/bash.