$ TEST=`perl -wle'print "test";exit 23'` $ echo $? 23 $ echo $TEST test