📜  zsh 等待用户输入 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:25.230000             🧑  作者: Mango

代码示例1
# delete -q if its not (y/n [n])

read -q VARIN\?"PROMPT_MSG"
read -q "VARIN?PROMPT_MSG"
#both style works, I prefer the first

echo $VARIN # for test