Bash Scripting

function cfs_init () {

(( $MVC_DEBUG )) && {

type_echo "$0 $FUNCNAME"type_echo "\n"

}

CFS_ECHO_BUFFER_FORMAT=()CFS_ECHO_BUFFER=()

return 0}

function cfs_stow () {

# Here is the barrier at the edge of the Universe!# `cfs_stow' is used to validate the operation of the only function call in the script.# We should comment out the script debug flag statements, or the overlapping # function specific debug flag statement.

(( $MVC_DEBUG )) && {

type_echo "$0 $FUNCNAME"type_echo "\n"

}

(( ${DEBUG_CFS_STOW:-1} )) && {

echo "DEBUG_CFS_STOW $FUNCNAME $1 $2"

} > /dev/stderr

if [ -n "$2" ]; then

CFS_ECHO_BUFFER_FORMAT[$CFS_ECHO_INDEX]=$1

CFS_ECHO_BUFFER[$CFS_ECHO_INDEX]="$2"

let CFS_ECHO_INDEX++ fi

return 0}

function cfs_dump () {

# Here we are well beyond the edge of the Universe. # I don't want to use a function call for the # only debug flag that exists in every function call.

# Though this is very sophisticated because of the redirection # And, I leave the primative commented out to remind # myself.