I have a shell script, where i start a new .sh script.Now I want to save the return value of the sub script in a variable. I found this script:#!/bin/bashr=1while [[ r -ne 0 ]]dor=`vx $* < \`tty\` > \`tty\``doneexit 0It calls the Script vx with a param and saves the return value in the variable r. What does the tty ... mean?Is that the return value?Can't I use $? for return value?Thanks! Edit:So would be the following wrong?#!/bin/bashreturnvalue=1while  [ $returnvalue -ne 0 ]do    bash ./vx $1    returnvalue=$?done
Get Return value of sub shell script
bash;shell