<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>basename, dirnameというコマンドとか関数があります。これにより、ファイル（またはディレクトリ）のフルパスを2つの部分に分けることができます。それぞれの部分を「ベース名」、「ディレクトリ名」と呼ぶのは常識と言ってもいいと思います。また、「+」を文字列連接演算だとして次の関係があります。 fullpath = dirname + '/' + basename ところが、ルートディレクトリに関してはこの関係が成り立たないことがあります。GNUのコマンドでは、「basename /」も「dirname /」も結果が / なので、上の等式はそのままでは成立しません。でも、ルートに対するb…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20100324%2F1269417567&quot; title=&quot;ファイルパス名の構成部分の、呼び名と定義 - 檜山正幸のキマイラ飼育記 (はてな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>2010-03-24 16:59:27</published>
  <title>ファイルパス名の構成部分の、呼び名と定義</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20100324/1269417567</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
