このページの内容

2.1 2つの入力例ファイル

次の2つのファイルを、多くの例で使います。diffの出力と、各種オプションによってその出力がどう変わるかを示すための入力例です。

これがファイルlaoです。

The Way that can be told of is not the eternal Way;
The name that can be named is not the eternal name.
The Nameless is the origin of Heaven and Earth;
The Named is the mother of all things.
Therefore let there always be non-being,
  so we may see their subtlety,
And let there always be being,
  so we may see their outcome.
The two are the same,
But after they are produced,
  they have different names.

これがファイルtzuです。

The Nameless is the origin of Heaven and Earth;
The named is the mother of all things.

Therefore let there always be non-being,
  so we may see their subtlety,
And let there always be being,
  so we may see their outcome.
The two are the same,
But after they are produced,
  they have different names.
They both may be called deep and profound.
Deeper and more profound,
The door of all subtleties!

この例では、最初のhunkにはlaoの先頭2行だけが含まれます。2番目のhunkには、laoの4行目と、それに対応するtzuの2行目・3行目が含まれます。最後のhunkには、tzuの末尾3行だけが含まれます。