2019-02-14 04:45:39 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
|
|
|
|
#!/BIN/SH
|
2019-10-31 17:11:23 +00:00
|
|
|
|
ECHO "\f Read Tests\n"
|
2019-01-16 04:50:18 +00:00
|
|
|
|
ECHO "Current Value of TVar is ${TVar}"
|
2019-10-31 17:11:23 +00:00
|
|
|
|
ECHO "\nRead -P Prompt Test\n"
|
2019-01-16 04:50:18 +00:00
|
|
|
|
READ -P "Enter your name: " TVar
|
2019-10-31 17:11:23 +00:00
|
|
|
|
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"
|
2019-02-14 04:45:39 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/TESTS/READTEST
|