summaryrefslogtreecommitdiff
path: root/src/getpw
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-26 01:35:00 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-26 01:35:15 +0200
commite0b52520b57cbcf6454ea35e97c99003d5596508 (patch)
treef2a276856afed304808e4ccf96e744018b1fe926 /src/getpw
parentca98b2ba8799b40ca0fe5b38b34c817a0215b119 (diff)
downloadmum-e0b52520b57cbcf6454ea35e97c99003d5596508.tar.gz
Add 'm-sync' and 'getpw' scripts
m-sync is a wrapper around m-pop that filters headers with m-filter.
Diffstat (limited to 'src/getpw')
-rwxr-xr-xsrc/getpw10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/getpw b/src/getpw
new file mode 100755
index 0000000..8115716
--- /dev/null
+++ b/src/getpw
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# getpw -- read password
+
+printf 'Enter password: ' > /dev/tty
+stty -f /dev/tty -echo
+read PASSWORD < /dev/tty
+stty -f /dev/tty echo
+echo > /dev/tty
+echo "$PASSWORD"