Skip to content

Instantly share code, notes, and snippets.

@bougui505
Last active November 25, 2019 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bougui505/6ba7a8a6de721f6ee500ad99b54cb525 to your computer and use it in GitHub Desktop.
Save bougui505/6ba7a8a6de721f6ee500ad99b54cb525 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
# -*- coding: UTF8 -*-
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr
# https://research.pasteur.fr/en/member/guillaume-bouvier/
# 2019-11-22 09:50:40 (UTC+0100)
# Store the type password in PASSWORD variable
# -s turns off echoing in bash or zsh
# -r for reading backslashes as-is
# IFS= to preserve leading and trailing blanks
# See: https://unix.stackexchange.com/a/439510/68794
IFS= read -rs PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment