问题详情

在Shell变量引用操作符可实现字符串替换其中()用来测试如果变量stra存在且不为空,则返回为word,否则返回为空串

A.${stra:-word}

B.${stra:=word}

C.${stra:+word}

D.${stra:?word}

参考答案
正确答案:C
您可能感兴趣的试题