18.3 Printing formatted messages

Function: mbfl_message_verbose_printf TEMPLATE [ARG …]

Format the arguments in the same way printf would do; output the resulting string 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, the formatting result. No newline character is appended to the message.

Function: mbfl_message_error_printf TEMPLATE [ARG …]

Format the arguments in the same way printf would do; output the resulting string 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, the formatting result, a newline character.

Function: mbfl_message_warning_printf TEMPLATE [ARG …]

Format the arguments in the same way printf would do; output the resulting string 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, the formatting result, a newline character.

Function: mbfl_message_debug_printf TEMPLATE [ARG …]

Format the arguments in the same way printf would do; output the resulting string 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, the string debug, a colon, a space, the formatting result, a newline character.


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