Shell stty: command not found

want to test the running script pause function

copied an online script
https://www.cnblogs.com/zqb-a.

-sharp!/bin/bash
-sharp!/bin/stty
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

-sharptest 

function get_char()
{
SAVEDSTTY="stty -g"
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}


echo "1"
echo "2"
get_char
echo "3"

the result of the run is like this, and Baidu can"t get the answer if you don"t understand it.

1
2
test1.sh: line 10: SAVEDSTTY=stty-g: command not found
test1.sh: line 11: stty: command not found
test1.sh: line 12: stty: command not found
test1.sh: line 14: stty: command not found
test1.sh: line 15: stty: command not found
test1.sh: line 16: stty: command not found
3

Thank you, God.

Aug.17,2021

because there is an invisible Chinese space at the beginning of your code reduction, try copying the following code:

-sharp!/bin/bash


function get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}


echo "1"
echo "2"
get_char
echo "3"
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ac9f-2ba8b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ac9f-2ba8b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?