<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mattintosh4</author_name>
  <author_url>https://blog.hatena.ne.jp/mattintosh4/</author_url>
  <blog_title>mattintosh note</blog_title>
  <blog_url>https://mattintosh-note.jp/</blog_url>
  <categories>
    <anon>Mac OS X</anon>
    <anon>ShellScript</anon>
  </categories>
  <description>シェルの初期化 env を経由することにより環境変数などをリセットできる。 #!/usr/bin/env - SHELL=/bin/sh LC_ALL=C TERM=xterm COMMAND_MODE=unix2003 /bin/sh ただし以下のように実行された場合はリセットされない。 $ sh script.sh 最低限？必要な環境変数の取得方法。システム環境変数は getconf、ユーザー環境変数は launchctl getenv かな。もし絶対パスでファイル指定が可能ならシェバングに ENV=/path/to/file や BASH_ENV=/path/to/file で sour…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmattintosh-note.jp%2Fentry%2F2013%2F06%2F16%2F232411&quot; title=&quot;シェルスクリプトの雑記帳 - mattintosh note&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-06-16 23:24:11</published>
  <title>シェルスクリプトの雑記帳</title>
  <type>rich</type>
  <url>https://mattintosh-note.jp/entry/2013/06/16/232411</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
