<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inaz2</author_name>
  <author_url>https://blog.hatena.ne.jp/inaz2/</author_url>
  <blog_title>ももいろテクノロジー</blog_title>
  <blog_url>https://inaz2.hatenablog.com/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>aliasとシェル関数の違いについてのメモ。 たとえばgrepコマンドを常にロケール非依存にて扱い処理を高速化するにあたり、一見、次の二つの定義は同等に見える。 alias grep='LC_ALL=C grep --color=auto' grep() { LC_ALL=C command grep --color=auto &quot;$@&quot; } しかし、これらは実際は異なる。 具体的には、aliasはインタラクティブモードの場合のみ機能し、シェル関数は非インタラクティブモードにおいても参照される。 また、同名のシェル関数とエイリアスが存在する場合、まずエイリアスが展開された後、シェル関数が実行され…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaz2.hatenablog.com%2Fentry%2F2014%2F12%2F13%2F044630&quot; title=&quot; aliasとシェル関数の使い分け - ももいろテクノロジー&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-12-13 04:46:30</published>
  <title> aliasとシェル関数の使い分け</title>
  <type>rich</type>
  <url>https://inaz2.hatenablog.com/entry/2014/12/13/044630</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
