2014-07-12 00:37:25 +02:00
|
|
|
if [ "$1" = "noechoback" ]; then
|
2014-09-12 16:23:04 +02:00
|
|
|
stty --file=/dev/tty -echo echonl || stty -F /dev/tty -echo echonl || stty -f /dev/tty -echo echonl || exit 1
|
2015-02-10 14:39:14 +01:00
|
|
|
IFS= read LINE </dev/tty
|
2014-09-12 16:23:04 +02:00
|
|
|
stty --file=/dev/tty echo -echonl || stty -F /dev/tty echo -echonl || stty -f /dev/tty echo -echonl
|
2014-07-12 00:37:25 +02:00
|
|
|
# printf '\n' >/dev/tty
|
|
|
|
else
|
2015-02-10 14:39:14 +01:00
|
|
|
IFS= read LINE </dev/tty
|
2014-07-12 00:37:25 +02:00
|
|
|
fi
|
2015-02-10 14:39:14 +01:00
|
|
|
printf '%s' "'$LINE'"
|
2014-06-27 03:08:05 +02:00
|
|
|
exit 0
|