MPE/iX Shell and Utilities Reference Manual, Vol 2

test(1) MPE/iX Shell and Utilities test(1)
–s file true if the size of the file is non-zero
–t fd true if the numeric file descriptor fd is open and associated with a terminal
–u file true if the setuid attribute of the file is on
–w file true if the file is writable
–x file true if the file is executable
–z string true if the length of the string is zero
string true if string is not a null string
string1 = string2
true if string1 and string2 are identical
string1 != string2
true if string1 and string2 are not identical
number1 –eq number2
true if number1 and number2 are equal
Both number1 and number2 must be integers.
number1 –ge number2
true if number1 is greater than or equal to number2
number –gt number
true if number1 is greater than number2
number1 –le number2
true if the first number1 is less than or equal to number2
number1 –lt number2
true if number1 is less than number2
number1 –ne number2
true if number1 is not equal to number2
file1 –nt file2
true if file1 is newer than file2
file1 –ot file2
true if file1 is older than file2
file1 –ef file2
true if file1 has the same device and i-node number as file2
Commands and Utilities 1-599