What does $?VAR mean in csh?

半城伤御伤魂 提交于 2019-12-01 06:01:11

$?VAR expands to 1 (true) if $VAR is set (to anything, even the empty string), 0 (false) if it isn't.

This is documented in the csh manual; follow the link and search for $?, or type man csh or man tcsh.

Oh, and csh doesn't have macros.

if ( ! $?LM_LICENSE_FILE ) then
means if ( LM_LICENSE_FILE has not been assigned with any value.) , then ...

On the other hand, if ( $?LM_LICENSE_FILE ) then
means if ( LM_LICENSE_FILE has been defined or assigned.) then

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!