A2osX/TESTS/READTEST.txt

25 lines
703 B
Plaintext
Raw Normal View History

NEW
PREFIX
AUTO 4,1
#!/BIN/SH
ECHO "\f Read Tests\n"
2019-01-16 04:50:18 +00:00
ECHO "Current Value of TVar is ${TVar}"
ECHO "\nRead -P Prompt Test\n"
2019-01-16 04:50:18 +00:00
READ -P "Enter your name: " TVar
Echo "\nNew TVar is ${TVar}\n"
Echo "Read -S Supress Echo/Password Input Test\n"
READ -S -P "Enter Password: " TVar
Echo "\nNew TVar is ${TVar}\n"
ECHO "Read -N 3 Limit Input Test\n"
READ -N 3 -P "Enter 3 chars: " TVar
Echo "\nNew TVar is ${TVar}\n"
ECHO "Read -N 1 Limit Input Test\n"
READ -N 1 -P "Enter 1 chars: " TVar
Echo "\nNew TVar is ${TVar}\n"
ECHO "Read -N 0 Limit Input Test\n"
READ -N 0 -P "Enter 1 chars: " TVar
Echo "\nNew TVar is ${TVar}\n"
Echo "\nEnd Test"
MAN
TEXT /MAKE/USR/SHARE/TESTS/READTEST