Bash Scripting - User Input
Identify the error in this script snippet:
read -p "Enter password:" password -s echo "Password is $password"
read -p "Enter password:" password -s echo "Password is $password"
read-s must come before the variable name; here it is after.-s after the variable name treats it as another variable name instead of an option, so input is not hidden.-s option is placed after the variable name. -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions