Created
December 4, 2014 16:45
-
-
Save sshimko/beff2a65ac4d937c672f to your computer and use it in GitHub Desktop.
BASH - export all variables and functions to subshells
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export -a | |
for f in $(declare -F | awk '{ print $3; }'); do | |
eval declare -f -x $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment