{"url":"https://mattintosh-note.jp/entry/2013/06/16/232411","type":"rich","blog_title":"mattintosh note","image_url":null,"author_name":"mattintosh4","published":"2013-06-16 23:24:11","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmattintosh-note.jp%2Fentry%2F2013%2F06%2F16%2F232411\" title=\"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u96d1\u8a18\u5e33 - mattintosh note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u30b7\u30a7\u30eb\u306e\u521d\u671f\u5316 env \u3092\u7d4c\u7531\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u74b0\u5883\u5909\u6570\u306a\u3069\u3092\u30ea\u30bb\u30c3\u30c8\u3067\u304d\u308b\u3002 #!/usr/bin/env - SHELL=/bin/sh LC_ALL=C TERM=xterm COMMAND_MODE=unix2003 /bin/sh \u305f\u3060\u3057\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306f\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u306a\u3044\u3002 $ sh script.sh \u6700\u4f4e\u9650\uff1f\u5fc5\u8981\u306a\u74b0\u5883\u5909\u6570\u306e\u53d6\u5f97\u65b9\u6cd5\u3002\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u5909\u6570\u306f getconf\u3001\u30e6\u30fc\u30b6\u30fc\u74b0\u5883\u5909\u6570\u306f launchctl getenv \u304b\u306a\u3002\u3082\u3057\u7d76\u5bfe\u30d1\u30b9\u3067\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u304c\u53ef\u80fd\u306a\u3089\u30b7\u30a7\u30d0\u30f3\u30b0\u306b ENV=/path/to/file \u3084 BASH_ENV=/path/to/file \u3067 sour\u2026","categories":["Mac OS X","ShellScript"],"author_url":"https://blog.hatena.ne.jp/mattintosh4/","provider_name":"Hatena Blog","width":"100%","title":"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u96d1\u8a18\u5e33","version":"1.0","blog_url":"https://mattintosh-note.jp/","provider_url":"https://hatena.blog"}