<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>読書ノート</anon>
  </categories>
  <description>コマンドを実行すると、終了時にシェルに対して戻り値を返す。 正常終了した場合は0 正常終了しなかった場合は0以外の値が返される。この戻り値を利用すれば、コマンドの実行が正常に終了したかどうかを判定できる。 戻り値は特殊な変数$?に格納されている。 次の例ではエラーが発生したため、戻り値が1になっている。 shige@shigemk2 ~% ls -l hoge ls: hoge: No such file or directory shige@shigemk2 ~% echo $? 1 shige@shigemk2 ~% echo $? 0最初のechoコマンドが正常終了したので、戻り値が0に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20121125%2F1353772018&quot; title=&quot;実行結果の戻り値 - by shigemk2&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-11-25 00:46:58</published>
  <title>実行結果の戻り値</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20121125/1353772018</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
