<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>debian</anon>
    <anon>シェルコマンド/シェルスクリプト</anon>
    <anon>mac</anon>
  </categories>
  <description>シェルスクリプトって1行目に#!/bin/shと書くものだと勝手に思ってたけど、最近自分が書いているシェルスクリプトを見てみると1行目には何も書いてない・・・・ それどころか、今日出たエラーでは1行目に上の呪文とは関係ない#から始まるコメントを入れてしまったせいで Command not found. とか出てきた・・・そこでシェルスクリプトの1行目の意味を調べてみた シェルスクリプトの1行目で&quot;#!&quot;が指定されている場合は特別な意味を持ち、 指定したシェルやプログラムで動作させることを意味します。 一般的には、以下の様な指定が使われます。 #!/bin/sh Borne shellでスクリプ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F04%2F08%2F120000&quot; title=&quot;【シェルスクリプト】1行目に関するメモ - Bus errorとSegmentation faultに困ったら見るブログ&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>2025-04-08 12:00:00</published>
  <title>【シェルスクリプト】1行目に関するメモ</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/04/08/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
