⬅︎ Back to Read in passwords with bash
I constantly am getting this error:read -s -p "Password: " passw read: 4: illegal option -sdoes anyone know why I can't get -s to work?
Hi Matt!In a script, start with#!/bin/bashinstead of#!/bin/sh
Comment
I constantly am getting this error:
read -s -p "Password: " passw
read: 4: illegal option -s
does anyone know why I can't get -s to work?
Replies
Hi Matt!
In a script, start with
#!/bin/bash
instead of
#!/bin/sh