This commit is contained in:
Ross Smith II 2020-10-25 03:01:01 -04:00 committed by GitHub
commit 0aa4e91f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2133,7 +2133,8 @@ printf '\n'
get_functions() {
# Usage: get_functions
IFS=$'\n' read -d "" -ra functions < <(declare -F)
printf '%s\n' "${functions[@]//declare -f }"
functions=("${functions[@]#* }")
printf '%s\n' "${functions[@]#* }"
}
```