shell 用户输入值REPLY变量值传递给 read 变量

shell 变量值传递给 read 变量

read  selChoices <<<"$REPLY"
echo $selChoices

"$REPLY" 是用户输入的值,它通过here-string(<<<)传递给read命令





参考:
https://qa.1r1g.com/sf/ask/2128520901/



posted @ 2023-08-16 16:19  悟透  阅读(72)  评论(0)    收藏  举报