Scott M. Mcdermott

UNIX Systems & Network Administrator
available for contract or salaried positions

stack_push

#

source ~/lib/sh/include
require array_exists

stack_push ()
{
        local stackname=$1
        local topush="$2"

        array_exists $stackname || { echo "array must exist"; return 1; }
        eval $stackname+=\(\$topush\)
}
# vim:syn=sh:ft=sh