<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wantanBlog</author_name>
  <author_url>https://blog.hatena.ne.jp/wantanBlog/</author_url>
  <blog_title>SEワンタンの独学備忘録</blog_title>
  <blog_url>https://www.wantanblog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>独学</anon>
  </categories>
  <description>ブログ開始当初に書いた記事でしたが、特定の検索ワードでそれなりの順位に出るのに記述内容があまりにひどかったので書き直しました。 「Linuxの [: 引数が多すぎます」についてはいくつかの出現パターンがありますが、シェルスクリプトで簡単に再現できたものだけやります。 超簡単に言うと、シェルスクリプトの判定式if [ command ]で発生している場合には[[]]で囲うようにしてあげます。 ■例1 変数などにスペースが格納されているときに起きる？変数の展開時に別の引数として扱われるっぽいですね。 #!/bin/bash chktest=&quot;test siken&quot; if [ $chktest ==…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wantanblog.com%2Fentry%2F2019%2F05%2F25%2F035039&quot; title=&quot;Linuxの　[:　引数が多すぎます - SEワンタンの独学備忘録&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>2019-05-25 03:50:39</published>
  <title>Linuxの　[:　引数が多すぎます</title>
  <type>rich</type>
  <url>https://www.wantanblog.com/entry/2019/05/25/035039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
