shell 输入不显示在监视器上

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

输出:

Enter your password:your password is dedede

原文地址:https://www.cnblogs.com/sea-stream/p/10083372.html