2013年11月5日 - bin/tcsh -f # set val = 0 foreach scen ( a b ) echo $scen if ($scen == a) then echo $scen else echo $val endif end.
stackoverflow.com