<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hagane</author_name>
  <author_url>https://blog.hatena.ne.jp/hagane/</author_url>
  <blog_title>新潟の空は今日も灰色/東京の空は今日も青空</blog_title>
  <blog_url>https://npoi.hatenablog.jp/</blog_url>
  <categories>
    <anon>雑記</anon>
    <anon>シェル</anon>
    <anon>Linux</anon>
    <anon>macOS</anon>
  </categories>
  <description>結論 $ exec $SHELL -l 背景 bash とかで、シェルだけで再起動したいとき、ウェブで検索すると、大概 $ source ~/.bashrc とか出てきます。ただ、正確にはこれは再起動していないだろうと。すでにプロファイル情報などが読み込まれているシェルで、新たに~/.bashrc を読み直してるだけです。 たとえば、下のような形で .bashrcのなかで定義されていた変数を削除したあとに、上記コマンドを実行しても、その変数は残ったままになるわけです。上記コマンドで、下の代入を取り消したかったら、.bashrc内でexport HOGE=を書くか、プロンプトで同コマンドを実施す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnpoi.hatenablog.jp%2Fentry%2F2014%2F03%2F17%2F222626&quot; title=&quot;bash を再起動 - 新潟の空は今日も灰色/東京の空は今日も青空&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-03-17 22:26:26</published>
  <title>bash を再起動</title>
  <type>rich</type>
  <url>https://npoi.hatenablog.jp/entry/2014/03/17/222626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
