Fix the stdin redirection when prompting a password bening the stdout piped