<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyagi</author_name>
  <author_url>https://blog.hatena.ne.jp/kyagi/</author_url>
  <blog_title>blog.ayakumo.net</blog_title>
  <blog_url>https://blog.ayakumo.net/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>Linux と Mac で xargs の挙動が違うのは以前から認識していたが、詳細までは調べていなかった。今回、プライベートの git レポジトリをコミットして Mac で xargs を実行した際に illegail option -- i と怒られてしまったので、これを機会に xargs が Linux と Mac 両方できちんと動作するように修正した。 Linux では動く、Mac では動かない # da = dot apply alias da=&quot;ls -A ~/git/$repo/t/dot/ | xargs -i cp {} $HOME &amp;&amp; pushd $HOME &amp;&amp; sou…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ayakumo.net%2Fentry%2F2018%2F02%2F07%2F070608&quot; title=&quot;xargs が Linux と Mac 両方できちんと動くためには -i ではなく -I オプションを使う - blog.ayakumo.net&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>2018-02-07 07:06:08</published>
  <title>xargs が Linux と Mac 両方できちんと動くためには -i ではなく -I オプションを使う</title>
  <type>rich</type>
  <url>https://blog.ayakumo.net/entry/2018/02/07/070608</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
