<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>fish</anon>
  </categories>
  <description>fishでのお話。 ターミナル上で特定の文字列を変数にセットして使う方法 $ set x (ls) | echo $x # 当該ディレクトリ上で ls した内容を出力する set x (何か出力をともなうコマンド) とすると () 内で実行されたコマンドの出力結果を x に格納する。 セットした変数をコマンドとして実行する sample: $ set x &quot;pwd&quot;; and echo $x pwd # 文字列をそのまま出力するだけでは文字列化された `pwd` コマンドは実行されない $ set x &quot;pwd&quot;; and eval $x ~/PROJECT_ROOT # 出力された eval…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F20170531%2F1496206647&quot; title=&quot;【fish】CLI上で利用する変数を保持する - emahiro/b.log&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>2017-05-31 13:57:27</published>
  <title>【fish】CLI上で利用する変数を保持する</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/20170531/1496206647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
