From John.Meister@intermec.com Thu Dec 12 16:52:37 2002 From: "Meister, John" HP-UX 11i - ksh Conditional Expressions. A conditional expression is used with the [[ compound command to test attributes of files and to compare strings. Field splitting and file name generation are not performed on the words between [[ and ]]. Each expression can be constructed from one or more of the following unary or binary expressions: string True, if string is not null. -a file Same is -e below. This is obsolete. -b file True, if file exists and is a block special file. -c file True, if file exists and is a character special file. -d file True, if file exists and is a directory. -e file True, if file exists. -f file True, if file exists and is an ordinary file. -g file True, if file exists and is has its setgid bit set. -k file True, if file exists and is has its sticky bit set. -n string True, if length of string is non-zero. -o option True, if option named option is on. -p file True, if file exists and is a fifo special file or a pipe. -r file True, if file exists and is readable by current process. -s file True, if file exists and has size greater than zero. -t fildes True, if file descriptor number fildes is open and associated with a terminal device. -u file True, if file exists and is has its setuid bit set. -w file True, if file exists and is writable by current process. -x file True, if file exists and is executable by current process. If file exists and is a directory, then true if the current process has permission to search in the directory. -z string True, if length of string is zero. -L file True, if file exists and is a symbolic link. -O file True, if file exists and is owned by the effective user id of this process. - 17 - Formatted: December 12, 2002 ksh(user cmd) ksh(user cmd)