📄 ex32.sh
字号:
#!/bin/bashPS3='Choose your favorite vegetable: 'echochoice_of(){select vegetable# [in list]被忽略, 所以'select'使用传递给函数的参数.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# 传递给choice_of()的参数exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -