Skip to content

Instantly share code, notes, and snippets.

@komiya-atsushi
Created January 22, 2012 07:06
Show Gist options
  • Save komiya-atsushi/1656035 to your computer and use it in GitHub Desktop.
Save komiya-atsushi/1656035 to your computer and use it in GitHub Desktop.
子シェルスクリプト→親シェルスクリプトに変数を引き継ぐひどいスクリプト
#---
# 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