1. [单选题]在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。
  A. ${strapattern} 
  B. ${strapattern} 
  C. ${stra%pattern} 
  D. ${stra%%pattern} 
 
2. [单选题]vi文件编辑器有三种模式,下列哪项不属于其中( )。
  A. 命令模式 
  B. 末行模式 
  C. 保护模式 
  D. 输入模式 
 
3. [单选题]在Shell变量引用操作符可实现字符串替换(character-replacement)其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序
  A. ${stra-word} 
  B. ${stra=word} 
  C. ${stra:+word} 
  D. ${stra:?word}