18.2 Printing plain messages

Function: mbfl_message_string STRING

Output a message to the selected output channel. Echo a string composed of: the selected program name, a colon, a space, STRING. No newline character is appended to the message. Escape characters supported by printf are allowed in STRING.

Function: mbfl_message_verbose STRING

Output a message to the selected output channel, but only if the evaluation of the function mbfl_option_verbose() returns true.

Echo a string composed of: the selected program name, a colon, a space, STRING. No newline character is appended to the message. Escape characters supported by printf are allowed in STRING.

Function: mbfl_message_verbose_end STRING

Output a message to the selected output channel, but only if the evaluation of the function mbfl_option_verbose() returns true. Echo the string. No newline character is appended to the message. Escape characters supported by printf are allowed in STRING.

If STRING is empty: this function just prints a newline when verbose execution is enabled.

Function: mbfl_message_error STRING

Output an error message to the selected output channel. Echo a string composed of: the selected program name, a colon, a space, the string error, a colon, a space, STRING, a newline character. Escape characters supported by printf are allowed in STRING.

Function: mbfl_message_warning STRING

Output a warning message to the selected output channel. Echo a string composed of: the selected program name, a colon, a space, the string warning, a colon, a space, STRING, a newline character. Escape characters supported by printf are allowed in STRING.

Function: mbfl_message_debug STRING

Output a message to the selected output channel, but only if the evaluation of the function mbfl_option_debug() returns true. Echo a string composed of: the selected program name, a colon, a space, STRING, a newline character. Escape characters supported by printf are allowed in STRING.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.