as part of a formatted error message on standard error (or on the system console). text
must be quoted as a single argument. fmtmsg
is used in shell scripts to print messages in a standard format. Messages display as follows:
You can define the MSGVERB
variable to select which parts of the message to print. Each part is described with the options below.
environment variable allows you to add additional severities and associated strings to be printed when those severities are provided.
A string describing the first action to take in recovering the error. The string "TO FIX:" precedes the action
The source of the problem, where source
is one of
Identify the message source with a text label
, often of the form file
How serious the condition is. severity
is one of
Another string identifier for the message.
Classify the message as one or more types
(separated by commas). types
can be one of the keywords
(meaning that the problem comes respectively from an application, utility, or the kernel), either of the keywords
(application will or won't recover),
(message displays on standard error), and
(message displays on system console).