Debian Codegraph @

secret-pw.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # secret-pw.sh: secret password
3
4 echoscip-shell system . . echo.
5 echoscip-shell system . . echo. -n "Enter password "
6 read passwd
7 echoscip-shell system . . echo. "password is $passwd"
8 echoscip-shell system . . echo. -n "If someone had been looking over your shoulder, "
9 echoscip-shell system . . echo. "your password would have been compromised."
10
11 echoscip-shell system . . echo. && echoscip-shell system . . echo. # Two line-feeds in an "and list."
12
13
14 sttyscip-shell system . . stty. -echo # Turns off screen echo.
15 # May also be done with
16 # read -sp passwd
17 # A big Thank You to Leigh James for pointing this out.
18
19 echoscip-shell system . . echo. -n "Enter password again "
20 read passwd
21 echoscip-shell system . . echo.
22 echoscip-shell system . . echo. "password is $passwd"
23 echoscip-shell system . . echo.
24
25 sttyscip-shell system . . stty. echo # Restores screen echo.
26
27 exit 0
28
29 # Do an 'info stty' for more on this useful-but-tricky command.