<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>bashの使い方</anon>
  </categories>
  <description>bash にもシンタックスチェック機能があります。 シンタックスチェックをすることでエラーを未然に防ぐ事ができます。 たとえば、長文のシェルスクリプトを書いているときシンタックス・チェックが有ると、事前にミスが見つかるので便利です。 bash のシンタックスチェック bash -n my_script.sh ちなみにbash 以外のzsh/dash などでも使えます。 文法ミスで死ぬのは辛いのでチェックしましょう シンタックスチェックが重要なわけ bash はインタプリタ(死語?) で、特に１行ずつ読み込んで評価・実行する言語になっています。 したがって、文法エラーがあると文法エラーの箇所の直…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2016%2F12%2F24%2F033745&quot; title=&quot;bash のシンタックスチェックでシンタックスエラーを防ぐ - それマグで！&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>2016-12-24 03:37:45</published>
  <title>bash のシンタックスチェックでシンタックスエラーを防ぐ</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2016/12/24/033745</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
