#! /bin/bash
trap '' 1 2 3 18
stty -echo
read -p "Key: " key_1
echo
read -p "Again: " key_2
echo
key_3=
if [ "$key_1" = "$key_2" ]
	then
		tput clear
		until [ "$key_3" = "$key_2" ]
		do
			read key_3
		done
	else
		echo "locktty: podany klucz jest nieprawidłowy" 1>&2
fi
stty echo
