convert from ruby version to shell version