Title | Previous | Next

error

Print an error message.

Synopsis:

error "message"

Arguments:

message

A quoted string which contains the error message to print.

Description:

This command prints an error message to the standard error, which is usually the shell window from which the program is called. This is particularly useful when you are programming your own aliases, and you want to provide an error message. If the command is being processed in an init file, the quotes must be preceeded by a backslash.

Examples:

# The following example is read from an init file.

alias command=yes plv " \

if (defined \"vec_ppp\") \

(error \"The vector plot is already plotted.\") \

(progn \

(delete_vec) \

(alias \"vec_ppp\" yes) \

(set_vec_symm) \

(vec var=$1) \

(plot_vec)) \

";

See Also:

alias , defined , echo , if , progn , warning


Title | Previous | Next

MeshTV@viper.llnl.gov
Copyright © 1998, U.S. Department of Energy. All rights reserved.