#bash 的 true 和 false 就是单词,所以这个值本来就是字符串
sunIsStar=true
strSun="$sunIsStar"
#strSun is "true"
#条件的结果就是它的退出码,$? 以数字形式给出;
#与 C 不同,假是 1,真是 0
[[ "Earth" == "star" ]]
strEarth=$?
#strEarth is "1"
#用 && 和 || 选取单词
[[ "Earth" == "star" ]] && strEarthWord=true || strEarthWord=false
#strEarthWord is "false"
echo "strSun is $strSun"
echo "strEarth is $strEarth"
echo "strEarthWord is $strEarthWord"