Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash_function_preamble='
- emulate -LR ksh
- '
- for name in ${(k)parameters}; do
- [[ "-$parameters[name]-" = *-export-* ]] || continue
- [[ ${(P)name} = '() {'*'}' ]] || continue
- ((! $+builtins[$name])) || continue
- functions[$name]=$bash_function_preamble${${${(P)name}#"() {"}%"}"}
- done
Add Comment
Please, Sign In to add comment