A2osX/TESTS/READTEST.txt

25 lines
703 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/BIN/SH
ECHO "\f Read Tests\n"
ECHO "Current Value of TVar is ${TVar}"
ECHO "\nRead -P Prompt Test\n"
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