我試過這樣:
#tcsh
set a="abc jue"
set b="sdc asj"
if($a == $b)then
echo "match"
else
echo"unmatch"
endif
這個不工作
set a = "abc jue"
set b = "sdc asj"
if ( "$a" == "$b" ) then
echo "match"
else
echo "unmatch"
endif
關於 tcsh 的更多資訊在這裡
引用自:https://unix.stackexchange.com/questions/316130