<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/chincoondo/">
    <title>ちんこ音頭＠Wiki</title>
    <link>http://w.atwiki.jp/chincoondo/</link>
    <atom:link href="https://w.atwiki.jp/chincoondo/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>ちんこ音頭＠Wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2006-01-14T00:42:13+09:00</dc:date>
    <utime>1137166933</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/6.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chincoondo/pages/1.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/6.html">
    <title>cygwin/bash の設定</title>
    <link>https://w.atwiki.jp/chincoondo/pages/6.html</link>
    <description>
      #contents

cygwin/bash の設定

* 関連リンク
- [[Linux Manpage of Bash&gt;http://www.linux.or.jp/JM/html/GNU_bash/man1/bash.1.html]]
- [[uenox HomePage Cygwin 日本語化&gt;http://uenox.ld.infoseek.co.jp/cygwin/japanese2.html]]

* bash のリソースファイルの読み込みの仕組み

** ログインシェルとして起動した場合の動作

[[Linux Manpage of Bash&gt;http://www.linux.or.jp/JM/html/GNU_bash/man1/bash.1.html]] から引用
&gt;bash が対話的なログインシェルとして起動されるか、
&gt;　--login オプション付きの非対話的シェルとして起動されると、
&gt;/etc/profile ファイルが存在すれば、
&gt;bash はまずここからコマンドを読み込んで実行します。
&gt;このファイルを読んだ後、
&gt;bash は ~/.bash_profile, ~/.bash_login, ~/.profile をこの順番で探します。
&gt;bash は、
&gt;この中で最初に見つかり、
&gt;かつ読み込みが可能であるファイルからコマンドを読み込んで実行します。
&gt;　--noprofile オプションを使ってシェルを起動すれば、
&gt;この動作を行わないようにできます。
&gt;
&gt;ログインシェルが終了するときには、 ~/.bash_logout ファイルがあれば、 bash はこれを読み込んで実行します。

まとめると、
bash は起動時に以下の順でファイルを読み込む
+ /etc/profile
+ ( ~/.bash_profile | ~/.bash_login | ~/.profile ) // 左から最初に見つかったヤツだけを読み込む。

終了時には以下のファイルを読み込む
+ ~/.bash_logout

** 対話的シェルとして起動したときの動作

[[Linux Manpage of Bash&gt;http://www.linux.or.jp/JM/html/    </description>
    <dc:date>2006-01-14T00:42:13+09:00</dc:date>
    <utime>1137166933</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/5.html">
    <title>oniguruma のインストール</title>
    <link>https://w.atwiki.jp/chincoondo/pages/5.html</link>
    <description>
      C言語用正規表現ライブラリ oniguruma を Visual C++
2005ExpressEditionでビルド＆インスコする方法を説明します。&lt;br&gt;

&lt;br&gt;
&lt;h3&gt;oniguruma のソースを取得&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.geocities.jp/kosako3/oniguruma/&quot;&gt;oniguruma&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
上記サイトより、Latest
releaseversionをダウンロードして展開する。&lt;br&gt;
ちなみにオレは V3.9.1 をダウンロードしました。&lt;br&gt;
&lt;br&gt;
&lt;h3&gt;oniguruma をスレッドセーフになるように設定する&lt;/h3&gt;
&lt;a href=
&quot;http://www.void.in/wiki/OnigPP&quot;&gt;やる気向上作戦:OnigPP&lt;/a&gt;を参考にしつつ以下のように設定する。&lt;br&gt;

&lt;h4&gt;regint.h&lt;/h4&gt;
&lt;pre&gt;
$ diff -c regint.h regint.h.orig
*** regint.h    Thu Jan 12 23:59:32 2006
--- regint.h.orig       Thu Jan 12 23:47:07 2006
***************
*** 84,99 ****
  #define USE_VARIABLE_META_CHARS
  #define USE_WORD_BEGIN_END          /* &quot;\&amp;lt;&quot;: word-begin, &quot;\&amp;gt;&quot;: word-end */
  #define USE_POSIX_REGION_OPTION     /* needed for POSIX API support */
! // オレ様変更
! // マルチスレッド対応化
! // 詳しくは doc/FAQ.ja をご覧あれ
! #include 
! #define USE_MULTI_THREAD_SYSTEM
! extern CRITICAL_SECTION gOnigMutex;
! #define THREAD_ATOMIC_START EnterCriticalSection(&amp;amp;gOnigMutex)
! #define THREAD_AT    </description>
    <dc:date>2006-01-13T01:04:20+09:00</dc:date>
    <utime>1137081860</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/4.html">
    <title>試してみたいモノリスト</title>
    <link>https://w.atwiki.jp/chincoondo/pages/4.html</link>
    <description>
      
&lt;ol&gt;
&lt;li&gt;&lt;a href=
&quot;http://www.boost.org/libs/ptr_container/doc/ptr_vector.html&quot;&gt;boost::ptr_vector&lt;/a&gt;
- ポインタをつっこめるコンテナらしい。&lt;br&gt;&lt;/li&gt;
&lt;/ol&gt;
    </description>
    <dc:date>2006-01-12T23:05:07+09:00</dc:date>
    <utime>1137074707</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/3.html">
    <title>メニュー2</title>
    <link>https://w.atwiki.jp/chincoondo/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)
    </description>
    <dc:date>2006-01-12T06:05:15+09:00</dc:date>
    <utime>1137013515</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/chincoondo/pages/2.html</link>
    <description>
      メニュー

- [[試してみたいモノリスト]]

***リンク
- [[ちんこ音頭＠ちんぽしーく&gt;http://chincoondo.hp.infoseek.co.jp/]]
- [[ちんこ音頭＠ブログ&gt;http://blog.livedoor.jp/chincoondo/]]

***更新履歴
#recent(20)    </description>
    <dc:date>2006-01-12T23:10:37+09:00</dc:date>
    <utime>1137075037</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chincoondo/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/chincoondo/pages/1.html</link>
    <description>
      適当に調べ物の結果なの度をまとめていきます。    </description>
    <dc:date>2006-01-12T22:19:48+09:00</dc:date>
    <utime>1137071988</utime>
  </item>
  </rdf:RDF>
