2014-07-12 00:37:25 +02:00
|
|
|
if [ "$1" = "noechoback" ]; then
|
|
|
|
stty -F /dev/tty -echo echonl
|
|
|
|
read LINE </dev/tty
|
|
|
|
stty -F /dev/tty echo -echonl
|
|
|
|
# printf '\n' >/dev/tty
|
|
|
|
else
|
|
|
|
read LINE </dev/tty
|
|
|
|
fi
|
2014-06-29 10:41:12 +02:00
|
|
|
printf '%s' "$LINE"
|
2014-06-27 03:08:05 +02:00
|
|
|
exit 0
|