<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CORDEA</author_name>
  <author_url>https://blog.hatena.ne.jp/CORDEA/</author_url>
  <blog_title>CORDEA blog</blog_title>
  <blog_url>https://cordea.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>echo ${array[0]} で出力される結果がshellによっては必ずしも望んだものにはならないという話 要するに配列のインデックスの開始がshellの種類によって0だったり1だったりするということです。 複数のshellを使う人には当たり前の知識かもしれませんが、私には新鮮だったのでメモ。 sh sh-3.2$ array=(0 1 2 3) sh-3.2$ echo ${array[*]} 0 1 2 3 sh-3.2$ echo ${array[0]} 0 sh-3.2$ echo ${array[1]} 1 bash CORDEA@macrou:~$ array=(0 1 2 3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcordea.hatenadiary.com%2Fentry%2F2014%2F10%2F12%2F201827&quot; title=&quot;echo ${array[0]} ...それ大丈夫？ - CORDEA blog&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>2014-10-12 20:18:27</published>
  <title>echo ${array[0]} ...それ大丈夫？</title>
  <type>rich</type>
  <url>https://cordea.hatenadiary.com/entry/2014/10/12/201827</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
