shell 输入不显示在监视器上

 

#!/bin/bash
 
read  -s  -p "Enter your password:" pass
 
echo "your password is $pass"
 
exit 0

 

输出:

Enter your password:your password is dedede

 

posted @ 2018-12-07 15:52  anobscureretreat  阅读(291)  评论(0编辑  收藏  举报