read: Illegal option -s in shell scripting

Viewed 11699

I tried running this code:

#!/bin/bash
read -s "Password: " password

With command:

run sh init.sh

it throws an error: read: Illegal option -s. Any help.

1 Answers
Related