<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gregminster</author_name>
  <author_url>https://blog.hatena.ne.jp/gregminster/</author_url>
  <blog_title>約束の地</blog_title>
  <blog_url>https://obel.hatenablog.jp/</blog_url>
  <categories>
    <anon>OS -&gt; Mac</anon>
    <anon>OS -&gt; Linux</anon>
  </categories>
  <description>状況 dateコマンドを自作のコマンドに置き換えた（パスの優先度が上位の場所に date というシェルスクリプトを置いた）とし、その内容が以下であったとする。 #!/usr/bin/env bash set -euo pipefail if [[ &quot;$(uname)&quot; == &quot;Darwin&quot; ]]; then LC_TIME=ja_JP.UTF-8 /bin/date &quot;+%Y年 %m月 %d日 %A %H:%M:%S %Z&quot; fi exit 0 この状態で $ phpenv install X.Y.Z や $ rbenv install X.Y.Z を実行すると、この dateコマンド が原…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20250516%2F1747346400&quot; title=&quot;dateコマンド の出力をカスタマイズしていると phpenv や rbenv の一時ディレクトリが正しく作成されない - 約束の地&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/459657/1568741889764668</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-16 07:00:00</published>
  <title>dateコマンド の出力をカスタマイズしていると phpenv や rbenv の一時ディレクトリが正しく作成されない</title>
  <type>rich</type>
  <url>https://obel.hatenablog.jp/entry/20250516/1747346400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
