在CSH中,是否可以将变量实例的测试嵌套在同一if子句中,并测试其值?
#!/bin/csh
# This seems to work...
if ( $?VAR ) then
echo "VAR exists"
if ( $VAR == true ) then
echo "VAR is true"
endif
endif
# I want something more like this:
if (( $?VAR ) && ( $VAR == true )) then
echo "VAR exists and is true"
endif