<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasaplus1</author_name>
  <author_url>https://blog.hatena.ne.jp/sasaplus1/</author_url>
  <blog_title>四角革命前夜</blog_title>
  <blog_url>https://sasaplus1.hatenadiary.com/</blog_url>
  <categories>
    <anon>sh</anon>
  </categories>
  <description>aaa.sh #!/bin/sh AAA=123 sh ./bbb.sh bbb.sh #!/bin/sh set -u echo $AAA を実行すると $ sh aaa.sh ./bbb.sh: line 5: AAA: unbound variable になってしまう…… exportもしたくないしなーと思って先頭で変数を宣言してみたら。 $ AAA= sh aaa.sh 123 $ echo $AAA $ 通った！しかも変数は残ってない！ あんまりよくわかってないけど、その行（？）だけの若干スコープの広い変数の扱いなのかな？ ちなみに。 $ AAA= ; sh aaa.sh ./bbb…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasaplus1.hatenadiary.com%2Fentry%2F20120911%2F1347350763&quot; title=&quot;シェルスクリプト間の変数渡し的な - 四角革命前夜&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>2012-09-11 17:06:03</published>
  <title>シェルスクリプト間の変数渡し的な</title>
  <type>rich</type>
  <url>https://sasaplus1.hatenadiary.com/entry/20120911/1347350763</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
