ruby -e "puts 1++" -e:1: Syntax error,unexpected $end
要么
ruby -e "x=1; puts x++;" -e:1: Syntax error,unexpected ';'