I've encountered this code written in csh:
if ( ! $?LM_LICENSE_FILE ) then
setenv LM_LICENSE_FILE $_LmLicense
else
switch("$LM_LICENSE_FILE")
case *${_LmLicense}*:
breaksw
default:
setenv LM_LICENSE_FILE "${_LmLicense}:$LM_LICENSE_FILE"
endsw
endif
Please note this line:
if ( ! $?LM_LICENSE_FILE ) then
What does $?
do in $?LM_LICENSE_FILE
?
LM_LICENSE_FILE
is a shell variable (or macro, more precisely), and I know that $LM_LICENSE_FILE
is used to retrieve its value, but a trailing question mark following $
, that is $?LM_LICENSE_FILE
, what is its meaning?