<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://journal.lampetty.net/</blog_url>
  <categories>
    <anon>Shell</anon>
  </categories>
  <description>&quot;set -e&quot;: 実行コマンドが0以外の終了コードの場合、シェルスクリプトを終了する - RX-7乗りの適当な日々にある通り、Shellスクリプトで set -e すると実行結果が0以外の場合、勝手にスクリプトが終了する。で、この挙動をスクリプトの途中で元に戻したい(＝エラーにしたくない)場合は以下のように set +e すればいい。 set -e echo &quot;in set -e&quot; ... set +e hoge echo &quot;in set +e&quot; これで hoge でコマンドが失敗してもエラーでShell自体は終了しなくなる。 [tmkm-amazon]4797321946[/tmkm-am…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjournal.lampetty.net%2Fentry%2Fwp%2F444&quot; title=&quot;Shellでset -e の状態を解除するにはset +e - oinume journal&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-02-05 12:02:09</published>
  <title>Shellでset -e の状態を解除するにはset +e</title>
  <type>rich</type>
  <url>https://journal.lampetty.net/entry/wp/444</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
