| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli_unsetFunctions { |
| |
| |
| local LOCATION=$1 |
| |
| |
| local SUFFIX=$2 |
| |
| |
| |
| |
| if [[ $SUFFIX == '' ]];then |
| SUFFIX=$FUNCNAM |
| fi |
| |
| |
| |
| |
| |
| local FUNCDEF='' |
| local FUNCDEFS=$(declare -F | gawk '{ print $3 }' | egrep "^${SUFFIX}") |
| |
| |
| for FUNCDEF in $FUNCDEFS;do |
| unset -f $FUNCDEF |
| done |
| |
| } |