Previous: , Up: variables   [Contents][Index]


17.3 Miscellaneous variable functions.

Function: mbfl_variable_alloc _RV

Generate a unique variable name and store it in the variable _RV.

To avoid allocating the same name twice: the function examines the new name testing if its value as variable is empty; if it is empty, it considers it “new”. So, whenever we allocate a name: we should locally initialise the variable to some non–empty value.

local NAME

mbfl_variable_alloc NAME
$NAME   ⇒ mbfl_a_variable_2323_7652

Previous: , Up: variables   [Contents][Index]

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