<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mas-higa</author_name>
  <author_url>https://blog.hatena.ne.jp/mas-higa/</author_url>
  <blog_title>ひがきの日記</blog_title>
  <blog_url>https://mas-higa.hatenadiary.org/</blog_url>
  <categories>
    <anon>Shell</anon>
  </categories>
  <description>ユーザに何か入力してもらうためにプロンプトを出したい。プロンプトは出力に混じらないように標準エラー出力に出す。 $ cat sample ... echo &quot;Are you sure? &quot; &gt;&amp;2 read ask case $ask in [Yy]) ... ;; ... $ ./sample Are you sure? _ echo にそのままプロンプト文字列を渡すと、プロンプトなのに改行されてしまう。 改行の抑止 BSD 系 -n オプションを使う。 echo -n &quot;Are you sure? &quot; SystemV 系 \c を表示する。 echo &quot;Are you sure? \c&quot; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20090214%2F1234610752&quot; title=&quot;プロンプトを出す。 - ひがきの日記&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>2009-02-14 20:25:52</published>
  <title>プロンプトを出す。</title>
  <type>rich</type>
  <url>https://mas-higa.hatenadiary.org/entry/20090214/1234610752</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
