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

A、${stra:-word }

B、${stra:=word }

C、${stra: +word }

D、${stra: ?word }

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题