红联Linux门户
Linux帮助

谁能告诉我get_char()是什么意思

发布时间:2011-11-14 11:00:06来源:红联作者:lzmsy0327
get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}
echo ""
echo "Press any key to start install Pure-FTPd..."
char=`get_char`
shell里有这么一段不是很明白这段是什么意思?函数定义么?像C++一样定义了一个群组?
文章评论

共有 1 条评论

  1. irwin520 于 2011-11-15 12:41:53发表:

    应该是shell函数