c shell脚本中查询变量有没有被定义

if(!($?VERSION)) then

  setenv VERSION

endif

if ($VERSION == "1.0"then

 ...

else

 ...

endif

猜你喜欢

转载自www.cnblogs.com/lybinger/p/9945439.html