Created
January 22, 2012 07:06
-
-
Save komiya-atsushi/1656035 to your computer and use it in GitHub Desktop.
子シェルスクリプト→親シェルスクリプトに変数を引き継ぐひどいスクリプト
This file contains 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
#--- | |
# child.sh | |
echo "export MESSAGE=hello" | |
#--- | |
# parent.sh | |
`sh child.sh` | |
echo $MESSAGE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment