builtin-option
read -s
Suppresses echo on a terminal. Does not encrypt input; this fixture tests file input only, not terminal echo.
Formal Syntax & Structure
bash syntaxbash
IFS= read -r -s valueReturn Value
exit status
Suppresses echo on a terminal. Does not encrypt input; this fixture tests file input only, not terminal echo.
Working Example
Example Snippetbash
umask 077printf 'DEMO_ONLY\n' > token.fixture || exit 1IFS= read -r -s token < token.fixture || exit 1[[ -n $token ]] || exit 2printf 'token present\n'unset token