<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NeoCat</author_name>
  <author_url>https://blog.hatena.ne.jp/NeoCat/</author_url>
  <blog_title>Okiraku Programming</blog_title>
  <blog_url>https://neocat.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Mac</anon>
  </categories>
  <description>LinuxとMac OS Xではshebangに書いたオプションの扱いが異なるらしい、という話。ちょっと実験してみました。 args.c =&gt; gcc -o args args.c でコンパイル #include &lt;stdio.h&gt; main(int argc, char *argv[]) { int i; for (i = 0; i &lt; argc; i++) printf(&quot;argv[%d] = %s\n&quot;, i, argv[i]); } test.sh (シェルスクリプトじゃないけど) #!./args a b c -d -e #abc hoge これで./test.shを実行してみる。ま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneocat.hatenablog.com%2Fentry%2F20081101%2F1225536051&quot; title=&quot; shebangの怪 - Okiraku Programming&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>2008-11-01 19:40:51</published>
  <title> shebangの怪</title>
  <type>rich</type>
  <url>https://neocat.hatenablog.com/entry/20081101/1225536051</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
