我已经尝试过这样的:
#tcsh
set a="abc jue"
set b="sdc asj"
if($a == $b)then
echo "match"
else
echo"unmatch"
endif
这个不工作
答案1
set a = "abc jue"
set b = "sdc asj"
if ( "$a" == "$b" ) then
echo "match"
else
echo "unmatch"
endif
有关 tcsh 的更多信息这里