Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
ksh(1) OSS Shell and Utilities Reference Manual
-a file TRUE,iffile exists.
-b file TRUE,iffile exists and is a block-special file.
-c file TRUE,iffile exists and is a character-special file.
-d file TRUE,iffile exists and is a directory.
-f file TRUE,iffile exists and is an ordinary file.
-g file TRUE,iffile exists and has its setgid bit set.
-G file TRUE,iffile exists and its group ID matches the effective group ID of this process.
-h file TRUE,iffile exists and is a symbolic link.
-k file TRUE,iffile exists and has its sticky bit set.
-L file TRUE,iffile exists and is a symbolic link.
-n string TRUE, if length of string is nonzero.
-o option
TRUE, if option named option is on.
-O file TRUE,iffile exists and is owned by the effective user ID of this process.
-p file TRUE,iffile exists and is a FIFO special file or a pipe.
-r file TRUE,iffile exists and is readable by current process.
-s file TRUE,iffile exists and has size greater than 0 (zero).
-S file TRUE,i
ffile exists and is a socket.
-t file_des
TRUE, if file descriptor number file_des is open and associated with a terminal device.
-u file TRUE,iffile exists and has its setuid bit set.
-w file TRUE,iffile exists and is writable by current process.
-x file TRUE,iffile exists and is executable by current process. If file exists and is a direc-
tory, then the current process has permission to search in the directory.
-z string TRUE, if length of string is 0 (zero).
file1 -nt file2
TRUE,iffile1 exists and is newer than file2.
file1 -ot file2
TRUE,iffile1 exists and is older than file2.
file1 -ef file2
TRUE,iffile1 and file2 exist and refer to the same file.
string = pattern
TRUE,ifstring matches pattern.
5−18 Hewlett-Packard Company 527188-021