<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hana_shin</author_name>
  <author_url>https://blog.hatena.ne.jp/hana_shin/</author_url>
  <blog_title>hana_shinのLinux技術ブログ</blog_title>
  <blog_url>https://hana-shin.hatenablog.com/</blog_url>
  <categories>
    <anon>トラブルシューティング</anon>
    <anon>bashスクリプト</anon>
    <anon>AlmaLinux 8</anon>
  </categories>
  <description>1 はじめに 2 検証環境 3 スクリプトにデバッグオプションを設定する方法 3.1 スクリプトが実行する処理を表示する方法(-x) 3.2 エラーが発生したらスクリプトを終了する方法(set -e/set +e) 3.2.1 スクリプト全体に適用する方法(set -e) 3.2.2 スクリプトの一部分に適用する方法(set -e/set +e) 3.3 変数未設定を検出する方法(-u) 3.4 パイプ処理でエラーが発生したらパイプ処理全体でエラーにする方法(-u) 4 bashコマンドの引数にデバッグオプションを指定する方法 5 デバッガを使う方法(bashdb) 6 スクリプトの構文をチェ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhana-shin.hatenablog.com%2Fentry%2F2023%2F04%2F15%2F110122&quot; title=&quot;bashスクリプトのデバッグ方法 - hana_shinのLinux技術ブログ&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>2023-04-15 11:01:22</published>
  <title>bashスクリプトのデバッグ方法</title>
  <type>rich</type>
  <url>https://hana-shin.hatenablog.com/entry/2023/04/15/110122</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
