红联Linux门户
Linux帮助

求助 ubuntu select找不到

发布时间:2012-02-10 10:20:23来源:红联作者:chinesefys
请大神指教
执行下面的脚本
#select usage
#!/bin/bash
echo "what is your favourite os"
select os_var in "linux" "windows" "other"
do
break
done
echo "your favorite os is $os_var"

显示信息
what is your favourite os
select.sh: 4: select: not found
select.sh: 5: Syntax error: "do" unexpected
文章评论

共有 0 条评论