<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xy_nak</author_name>
  <author_url>https://blog.hatena.ne.jp/xy_nak/</author_url>
  <blog_title>physpolyglot</blog_title>
  <blog_url>https://physpolyglot.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Mac</anon>
  </categories>
  <description>今流行りのpecoを使ったシェルコマンドを書いているときに、 xargsが空文字列を受け取ったときの挙動がMacとScientific Linux(以降SL)で違って戸惑った。 echo | xargs echo &quot;hoge&quot; としたときにMacは何もエコーされないのに対し、SLだとhogeがエコーされる。 SLでは-rオプションをつけることで、空文字列が渡ってきたときに無視することは出来るが、Macではエラーになってしまう。 http://linuxjm.sourceforge.jp/html/GNU_findutils/man1/xargs.1.html によれば、rオプションはGNUの拡…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyspolyglot.hateblo.jp%2Fentry%2F2014%2F08%2F01%2F181434&quot; title=&quot;xargsに空文字列が渡ったときのMacとLinuxでの挙動の違い - physpolyglot&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-08-01 18:14:34</published>
  <title>xargsに空文字列が渡ったときのMacとLinuxでの挙動の違い</title>
  <type>rich</type>
  <url>https://physpolyglot.hateblo.jp/entry/2014/08/01/181434</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
