shell.rb: fix precedence