ex32.sh

来自「Shall高级编程」· Shell 代码 · 共 25 行

SH
25
字号
#!/bin/bashPS3='Choose your favorite vegetable: 'echochoice_of(){select vegetable# [in list] omitted, so 'select' uses arguments passed to function.do  echo  echo "Your favorite veggie is $vegetable."  echo "Yuck!"  echo  breakdone}choice_of beans rice carrots radishes tomatoes spinach#         $1    $2   $3      $4       $5       $6#         passed to choice_of() functionexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?