9.0;not, revision 9.0, 85/03/27
NOT -- Negate a Boolean value.
usage: NOT command
FORMAT
NOT command
NOT takes the Boolean value returned by a command or expression and negates
it. This is useful primarily with the program control structures (IF, WHILE,
etc.) used in Shell scripts.
ARGUMENTS
command
(required) Specify a command or expression that returns a Boolean
value.
EXAMPLES
Assume the following lines appear inside Shell scripts.
#
# Loop as long as no error file exists.
#
while not existf error_file
do args "No error file yet ..."
enddo
# End of script
#
# Verify user response.
#
eon
read -p "Type the pathname of the file to be deleted: " name
read -p "Are you sure you want to delete ^name?" verification
if not ((^verification = "yes")) then
read -p "Please retype the pathname: " newname
dlf ^newname
else dlf ^name
endif
#