2019-01-25 04:29:46 +00:00
|
|
|
|
NEW
|
2019-02-14 04:45:39 +00:00
|
|
|
|
PREFIX
|
2019-01-25 04:29:46 +00:00
|
|
|
|
AUTO 4,1
|
|
|
|
|
#!/BIN/SHELL
|
|
|
|
|
#SET -X
|
|
|
|
|
ECHO "\n\nThis is the ENV Test"
|
|
|
|
|
ECHO "\n This will stress the ENV space and string handling"
|
|
|
|
|
ECHO "\n\nEnter the size of the base string to use.
|
2019-01-28 03:53:27 +00:00
|
|
|
|
ECHO "Acceptable values are 20, 40, 60, 80 and 100\n"
|
2019-01-25 04:29:46 +00:00
|
|
|
|
read -P "String size: " Z
|
|
|
|
|
IF [ $Z = "20" ]
|
|
|
|
|
SET A = "A1B2C3D4E5F6G7H8I9J0"
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "40" ]
|
|
|
|
|
SET A = "A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0"
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "60" ]
|
|
|
|
|
SET A = "A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0"
|
|
|
|
|
ELSE
|
2019-01-28 03:53:27 +00:00
|
|
|
|
IF [ $Z = "80" ]
|
|
|
|
|
SET A = "A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0"
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "100" ]
|
|
|
|
|
SET A = "A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0A1B2C3D4E5F6G7H8I9J0"
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nYou did not enter a valid size"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
|
|
|
|
FI
|
2019-01-25 04:29:46 +00:00
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
ECHO "Base String Set to ${A}"
|
|
|
|
|
ECHO Copy A to B
|
|
|
|
|
SET B = ${A}
|
|
|
|
|
Echo "B is ${B}"
|
|
|
|
|
Echo Copy B to C
|
|
|
|
|
SET C = ${B}
|
|
|
|
|
Echo "C is ${C}"
|
|
|
|
|
ECHO Copy A to D
|
|
|
|
|
SET D = ${A}
|
|
|
|
|
Echo "D is ${D}"
|
|
|
|
|
ECHO Copy B to E
|
|
|
|
|
SET E = ${B}
|
|
|
|
|
Echo "E is ${E}"
|
|
|
|
|
ECHO Copy C to F
|
|
|
|
|
SET F = ${C}
|
|
|
|
|
Echo "F is ${F}"
|
|
|
|
|
ECHO END ENV TEST
|
|
|
|
|
MAN
|
2019-02-14 04:45:39 +00:00
|
|
|
|
TEXT /MAKE/USR/SHARE/TESTS/ENVTEST
|