Next: , Previous: , Up: Top   [Contents][Index]

4 Some base functions

Function: mbfl_set_maybe name value

Set a variable named name to value, but only if name is not the empty string; if value is the empty string: the old value of name is left untouched.

Function: mbfl_read_maybe_null varname

Read a line from its stdin and store it in a variable named varname. If mbfl_option_null() returns true: the null character is used as terminator, as in:

IFS= read -d $'\x00'

Next: , Previous: , Up: Top   [Contents][Index]

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