OSDN Git Service

info/GNU_which: Rebuild GNU_which's info directory.
authorcyoichi <cyoichi@users.osdn.me>
Sun, 2 Jul 2023 01:59:19 +0000 (10:59 +0900)
committercyoichi <cyoichi@users.osdn.me>
Sun, 2 Jul 2023 01:59:19 +0000 (10:59 +0900)
new file:   GNU_which/Makefile
new file:   GNU_which/about_this_makefile.txt
new file:   GNU_which/draft/version.texi
new file:   GNU_which/draft/which-ja.info
new file:   GNU_which/draft/which-ja.texi
new file:   GNU_which/original/version.texi
new file:   GNU_which/original/which.info
new file:   GNU_which/original/which.texi
new file:   GNU_which/po4a/memo.txt
new file:   GNU_which/po4a/version.texi.patch
new file:   GNU_which/po4a/which-ja.po
new file:   GNU_which/po4a/which-ja.texi.patch
new file:   GNU_which/po4a/which.pot

13 files changed:
info/GNU_which/Makefile [new file with mode: 0644]
info/GNU_which/about_this_makefile.txt [new file with mode: 0644]
info/GNU_which/draft/version.texi [new file with mode: 0644]
info/GNU_which/draft/which-ja.info [new file with mode: 0644]
info/GNU_which/draft/which-ja.texi [new file with mode: 0644]
info/GNU_which/original/version.texi [new file with mode: 0644]
info/GNU_which/original/which.info [new file with mode: 0644]
info/GNU_which/original/which.texi [new file with mode: 0644]
info/GNU_which/po4a/memo.txt [new file with mode: 0644]
info/GNU_which/po4a/version.texi.patch [new file with mode: 0644]
info/GNU_which/po4a/which-ja.po [new file with mode: 0644]
info/GNU_which/po4a/which-ja.texi.patch [new file with mode: 0644]
info/GNU_which/po4a/which.pot [new file with mode: 0644]

diff --git a/info/GNU_which/Makefile b/info/GNU_which/Makefile
new file mode 100644 (file)
index 0000000..d9a696d
--- /dev/null
@@ -0,0 +1,55 @@
+# この Makefile が何をやるもので、どのように使うかについては、
+# 同一ディレクトリの about_this_makefile.txt をご覧ください。
+
+include ../../JM.rules
+
+PACKAGE = $(shell basename `pwd`)
+MANTYPE = info
+WWWDEST = $(WWWROOT)/$(MANTYPE)/$(PACKAGE)
+
+GITTOP = $(ROOT)/jm.git
+INFOPKGWWW = $(GITTOP)/www/info-pkg
+INFOTMPDIR = $(TMPDIR)/info
+INFORELEASE = $(shell env LANG=C date +"%Y%m%d")
+INFODEST = info-ja-GNU_which-$(INFORELEASE)
+
+TEXI2HTML = texi2html
+TEXIFILE = release/which-ja.texi
+HTMLDIR = html
+HTMLFILE = $(HTMLDIR)/which-ja.html
+
+html:  $(HTMLFILE)
+
+$(HTMLFILE):   $(TEXIFILE)
+       mkdir -p $(HTMLDIR)
+       $(TEXI2HTML) --output=$@ $<
+
+clean:
+       $(RM) -r $(HTMLDIR)
+       $(RM) -r $(INFOPKGWWW)
+
+html-install:  $(HTMLFILE)
+       mkdir -p $(WWWDEST)
+       rsync -av --delete $(HTMLDIR)/ $(WWWDEST)
+       -$(RM) -r $(HTMLDIR)
+
+pkg-install:
+       [ -d $(INFOPKGWWW) ] || mkdir -p $(INFOPKGWWW)
+       -$(RM) $(INFOPKGWWW)/info-ja-GNU_which-*
+       [ -d $(INFOTMPDIR) ] || mkdir -p $(INFOTMPDIR)
+       -$(RM) -r $(INFOTMPDIR)/info-ja-GNU_which-*
+       mkdir -p $(INFOTMPDIR)/$(INFODEST)
+       cp -p release/* $(INFOTMPDIR)/$(INFODEST)
+       cd $(INFOTMPDIR); \
+       tar czf $(INFODEST).tar.gz $(INFODEST); \
+       cp -p $(INFODEST).tar.gz $(INFOPKGWWW)
+
+# 上記 pkg-install ターゲットの最後の cp では、info マニュアルの
+# タールボールを jm.git/www/info-pkg ディレクトリにコピーしている。
+# こうしておくと、後で jm.git/www/Makefile が実行されるときに、
+# install ターゲット中で "$(RSYNC) ... * ... $(WWWROOT)" が行われるが、
+# このワイルドカード "*" に info-pkg ディレクトリも含まれることになるので、
+# info-pkg/* も $(WWWROOT)=$(ROOT)/htdocs にコピーされるのである。
+# もっと単純に書くべきだったかもしれない。
+
+install:       html-install pkg-install
diff --git a/info/GNU_which/about_this_makefile.txt b/info/GNU_which/about_this_makefile.txt
new file mode 100644 (file)
index 0000000..fbca46e
--- /dev/null
@@ -0,0 +1,30 @@
+この Makefile は、JM のサイトで自動的に which の info マニュアルの 
+html 版を作成・公開したり、info マニュアルのパッケージを作って
+配布したりできるようにするためのものです。po ファイルから texi や 
+info ファイルを作るためのものではありません。
+
+現在は which の info マニュアルは公開しないようになっていますが、
+もし公開したいならば、GNU_which の下に release ディレクトリを作り、
+draft ディレクトリにあるものをすべて release ディレクトリにコピーします。
+それから、親ディレクトリの info ディレクトリにある Makefile を開いて、
+SUBDIRS 変数に GNU_which を追加します。こんなふうに。
+
+   SUBDIRS = GNU_coreutils GNU_which
+
+それだけです。あとは時間が来れば、すべて cron がやってくれるはずです。
+うまく行くことを祈ってください (手元の実験環境では、一応成功しています)。
+
+公開する場合にやってておくことが、もうひとつありました。
+jm.git/www/INDEX/info.m4 の「目次」の部分に GNU_which の項目を追加して
+JM のホームページから which の info マニュアルがたどれるようにすること。
+こんな具合です。
+
+<H2>目次</H2>
+<UL>
+ <LI>_LINK(../info/GNU_coreutils/coreutils-ja.html, GNU coreutils) (Version 8.26)</LI>
+ <LI>_LINK(../info/GNU_which/which-ja.html, GNU which) (Version 2.21)</LI>
+</UL>
+
+-- 
+cyoichi (2023/05/05)
+
diff --git a/info/GNU_which/draft/version.texi b/info/GNU_which/draft/version.texi
new file mode 100644 (file)
index 0000000..dc689ce
--- /dev/null
@@ -0,0 +1,5 @@
+@c @set UPDATED 20 March 2015
+@set UPDATED 2015-03-20
+@set UPDATED-MONTH March 2015
+@set EDITION 2.21
+@set VERSION 2.21
diff --git a/info/GNU_which/draft/which-ja.info b/info/GNU_which/draft/which-ja.info
new file mode 100644 (file)
index 0000000..335dff4
--- /dev/null
@@ -0,0 +1,296 @@
+This is which-ja.info, produced by makeinfo version 6.5 from
+which-ja.texi.
+
+INFO-DIR-SECTION System administration
+START-INFO-DIR-ENTRY
+* Which-ja: (which-ja).      Show full path of commands.
+END-INFO-DIR-ENTRY
+
+
+This file documents ‘which’ version 2.x.
+
+Copyright © 2000 - 2015, by
+
+Carlo Wood, Run on IRC <carlo@alinoe.com>
+RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
+Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
+
+Japanese Translation Copyright © 2023 Linux JM project
+
+Permission is granted to make and distribute verbatim copies of
+this manual provided the copyright notice and this permission notice
+are preserved on all copies.
+
+   Permission is granted to copy and distribute modified versions of
+this manual under the conditions for verbatim copying, provided also
+that the section entitled “GNU General Public License” is included
+exactly as in the original, and provided that the entire resulting
+derived work is distributed under the terms of a permission notice
+identical to this one.
+
+   Permission is granted to copy and distribute translations of this
+manual into another language, under the above conditions for modified
+versions, except that the section entitled “GNU General Public License”
+may be included in a translation approved by the author instead of in
+the original English.
+
+   Note (by the translator): Actually, “GNU General Public License” is
+not included in the original version of this info manual.  You will get
+a copy of it at <https://www.gnu.org/licenses/>.
+
+\1f
+File: which-ja.info,  Node: Top,  Next: Which Program,  Prev: (dir),  Up: (dir)
+
+‘which’: コマンドのフルパスを表示する
+*************************************
+
+‘which’ プログラムは、(シェル) コマンドのフルパスを表示する。
+
+このファイルは、‘which’ version 2.21 (2015-03-20 に更新) について解説し
+ている。
+
+【読者への御注意】これは、GNU 版の ‘which’ コマンドのマニュアルである。
+‘which’ の実装には、いくつかの系統があるので、お手元の ‘which’ が別系統
+であるときは、オプションなどがここで説明しているものとかなり違うかもしれ
+ない。 そのときは、お手元の ‘which’ に付属するマニュアルをご覧になってい
+ただきたい。
+
+* Menu:
+
+* Which Program::            ‘which’ プログラムについて
+* Invoking Which::           ‘which’ の起動
+* Option Summary::           コマンドラインオプション一覧
+* Return Value::             ‘which’ の返り値
+* Example::                  用例
+* Bugs::                     既知のバグ
+* See Also::                 関連する UNIX コマンド
+* Index::                    索引
+
+\1f
+File: which-ja.info,  Node: Which Program,  Next: Invoking Which,  Prev: Top,  Up: Top
+
+1 ‘which’ プログラムについて
+****************************
+
+‘Which’ は、ひとつ以上の引数を取り、 そうした引数のそれぞれについて、そ
+れがシェルのプロンプトから入力されていたら、 実行されていたであろう実行
+ファイルのフルパスを標準出力に表示する。‘Which’ は、それを行うに当たり、
+‘bash(1)’ と同じアルゴリズムを使って、環境変数 ‘PATH’ にリストされたディ
+レクトリを調べ、実行ファイルやスクリプトを捜す。
+
+\1f
+File: which-ja.info,  Node: Invoking Which,  Next: Option Summary,  Prev: Which Program,  Up: Top
+
+2 ‘which’ の起動
+****************
+
+‘which’ 起動の書式は、次のとおりである。
+
+     which [options] [--] programname [...]
+
+\1f
+File: which-ja.info,  Node: Option Summary,  Next: Return Value,  Prev: Invoking Which,  Up: Top
+
+3 オプション一覧
+****************
+
+‘--all’
+‘-a’
+     ‘PATH’ 中で最初に引数に一致したものだけでなく、一致したすべての実行
+     ファイルを表示する。
+
+‘--read-alias’
+‘-i’
+     標準入力からエイリアスを読み込んで、引数に一致するものを標準出力に
+     書き出す。 このオプションは、which コマンドの代わりにエイリアスを使
+     用する場合に、その中で使うとよい。 たとえば、次のようにだ。
+     ‘alias which='alias | which -i'’
+
+‘--skip-alias’
+     ‘--read-alias’ オプションが指定されていても、それを無視する。 この
+     オプションは、which の代わりに使うエイリアスや関数で ‘--read-alias’
+     オプションを使用している場合に、通常のバイナリを明示的に探すのに役
+     に立つ。
+
+‘--read-functions’
+     標準入力からシェル関数の定義を読み込んで、引数に一致するものを標準
+     出力に書き出す。 このオプションは、which コマンドの代わりにシェル関
+     数を使用する場合に、 その中で使うとよい。たとえば、次のようにだ。
+     ‘which () { declare -f | /usr/bin/which --read-functions $@; }
+     export -f which’
+
+‘--skip-functions’
+     ‘--read-functions’ が指定されていても、それを無視する。 このオプシ
+     ョンは、which の代わりに使うエイリアスや関数で ‘--read-functions’ オ
+     プションを使用している場合に、通常のバイナリを明示的に捜すのに役に
+     立つ。
+
+‘--skip-dot’
+     環境変数 ‘PATH’ 中のドット (.) で始まるパスをスキップする。 (1)
+
+‘--skip-tilde’
+     ‘PATH’ 中のチルダ (~) で始まるディレクトリと、‘HOME’ ディレクトリ以
+     下にある実行ファイルをスキップする。
+
+‘--show-dot’
+     ‘PATH’ 中にドット (.) で始まるパスがあるとき、 それに対応するディレ
+     クトリで引数に一致する実行ファイルが見つかったら、 フルパスではなく
+     "./programname" などと表示する。
+
+‘--show-tilde’
+     ディレクトリに ‘HOME’ ディレクトリが含まれているときは、チルダを出
+     力する。 このオプションは、‘which’ が root の権限で実行されている場
+     合には無視される。
+
+‘--tty-only’
+     出力が端末でない場合は、これより右にあるオプションの処理をしない。
+     (2)
+
+‘--version, -v, -V’
+     バージョン情報を標準出力に表示して、正常終了する。
+
+‘--help’
+     使用法を標準出力に表示して、正常終了する。
+
+   ---------- Footnotes ----------
+
+   (1) 環境変数 ‘PATH’ に ’.’ や ’./bin’、’.local’ などが登録されている
+場合のことを言っている。’$HOME/.local’ といったディレクトリのことではな
+い。そのへんの事情は、‘--show-dot’ でも同じである。
+
+   (2) このオプションに効果があるのは、‘--show-dot’, ‘--show-tilde’,
+‘--skip-dot’, ‘--skip-tilde’ に対してだけのようである。
+
+\1f
+File: which-ja.info,  Node: Return Value,  Next: Example,  Prev: Option Summary,  Up: Top
+
+4 返り値
+********
+
+‘Which’ は、検索に失敗した引数の個数を返す。引数に ‘programname’ が指定
+されなかった場合には、-1 を返す。
+
+\1f
+File: which-ja.info,  Node: Example,  Next: Bugs,  Prev: Return Value,  Up: Top
+
+5 用例
+******
+
+このユーティリティの使用に当たっては、以下のように、エイリアスや (C
+shell の場合) シェル関数に (Bourne shell の場合)、‘which’ コマンドの代わ
+りに使用するものを追加しておくことをおすすめする。
+
+   [ba]sh:
+
+     which ()
+     {
+       (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
+     }
+     export -f which
+
+   [t]csh:
+
+     alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
+
+このようにしておくと、which をプロンプトから実行したときには、パスを ~/
+や ./ という読みやすい形で表示するが、スクリプトから使用した場合には、 通
+常どおりフルパスの表示になる。(1)
+
+     > which q2
+     ~/bin/q2
+     > echo `which q2`
+     /home/carlo/bin/q2
+
+   ---------- Footnotes ----------
+
+   (1) 実際には、こうした関数やエイリアスを端末のプロンプトから実行しよ
+うと、 スクリプトから実行しようと、表示に変わりはない。 出力先が、標準出
+力や標準エラーか、それ以外かで違いが生じるようである (実行例の二番目では
+、標準入力に出力している)。念のため、ご自分でお試しいただきたい。
+
+\1f
+File: which-ja.info,  Node: Bugs,  Next: See Also,  Prev: Example,  Up: Top
+
+6 バグ
+******
+
+‘HOME’ ディレクトリの特定は、環境変数 ‘HOME’ を調べることで行われるが、
+この変数が存在しない場合は、‘HOME’ ディレクトリの特定作業は打ち切られる
+。(1) また、‘Which’ は、二つのディレクトリが事実上同じものであっても、 片
+方のパスにシンボリックリンクが含まれている場合は、別のディレクトリと見な
+すことになる。
+
+   ---------- Footnotes ----------
+
+   (1) この記述は古いようだ。パッケージ同梱の NEWS ファイルによれば、
+which-2.19 以来、環境変数 ‘HOME’ が設定されていない場合は、/etc/passwd フ
+ァイルが調べられ、そこでも指定されていない場合は、’/’ がホームディレクト
+リになるとのことである。
+
+\1f
+File: which-ja.info,  Node: See Also,  Next: Index,  Prev: Bugs,  Up: Top
+
+7 関連項目
+**********
+
+‘bash(1)’
+
+\1f
+File: which-ja.info,  Node: Index,  Prev: See Also,  Up: Top
+
+索引
+****
+
+\0\b[index\0\b]
+* Menu:
+
+* --all:                                 Option Summary.       (line  6)
+* --help:                                Option Summary.       (line 61)
+* --read-alias:                          Option Summary.       (line 11)
+* --read-functions:                      Option Summary.       (line 24)
+* --show-dot:                            Option Summary.       (line 44)
+* --show-tilde:                          Option Summary.       (line 49)
+* --skip-alias:                          Option Summary.       (line 18)
+* --skip-dot:                            Option Summary.       (line 37)
+* --skip-functions:                      Option Summary.       (line 31)
+* --skip-tilde:                          Option Summary.       (line 40)
+* --tty-only:                            Option Summary.       (line 54)
+* --version:                             Option Summary.       (line 58)
+* -a:                                    Option Summary.       (line  6)
+* -i:                                    Option Summary.       (line 11)
+* -v:                                    Option Summary.       (line 58)
+* -V:                                    Option Summary.       (line 58)
+* which の説明:                          Which Program.        (line  6)
+* which の起動:                          Invoking Which.       (line  6)
+* which の返り値:                        Return Value.         (line  6)
+* エイリアスの使用:                      Example.              (line  6)
+* オプション、コマンドライン:            Option Summary.       (line  6)
+* コマンドラインオプション一覧:          Option Summary.       (line  6)
+* コマンドライン・オプション:            Option Summary.       (line  6)
+* 既知のバグ:                            Bugs.                 (line  6)
+* 書式:                                  Invoking Which.       (line  6)
+* 用例:                                  Example.              (line  6)
+
+
+\1f
+Tag Table:
+Node: Top\7f1556
+Node: Which Program\7f2816
+Node: Invoking Which\7f3483
+Node: Option Summary\7f3733
+Ref: Option Summary-Footnote-1\7f6719
+Ref: Option Summary-Footnote-2\7f7004
+Node: Return Value\7f7175
+Node: Example\7f7444
+Ref: Example-Footnote-1\7f8472
+Node: Bugs\7f8891
+Ref: Bugs-Footnote-1\7f9479
+Node: See Also\7f9825
+Node: Index\7f9944
+\1f
+End Tag Table
+
+\1f
+Local Variables:
+coding: utf-8
+End:
diff --git a/info/GNU_which/draft/which-ja.texi b/info/GNU_which/draft/which-ja.texi
new file mode 100644 (file)
index 0000000..53fbe9c
--- /dev/null
@@ -0,0 +1,325 @@
+\input texinfo   @c -*-texinfo-*-
+@c ===========================================================================
+@c
+@c This file was generated with po4a. Translate the source file.
+@c
+@c ===========================================================================
+@c %**start of header
+@setfilename which-ja.info
+@documentencoding UTF-8
+@settitle @command{which}: コマンドのフルパスを表示する
+@include version.texi
+@dircategory System administration
+@direntry
+* Which-ja: (which-ja).      Show full path of commands.
+@end direntry
+@c %**end of header
+
+@setchapternewpage odd
+
+@ifinfo
+@format
+
+@c !BEGIN INTRO
+@c !END INTRO
+This file documents `which' version 2.x@.
+
+@c !BEGIN COPYING
+Copyright @copyright{} 2000 - 2015, by
+
+Carlo Wood, Run on IRC <carlo@@alinoe.com>
+RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
+Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
+
+Japanese Translation Copyright @copyright{} 2023 Linux JM project
+
+Permission is granted to make and distribute verbatim copies of
+this manual provided the copyright notice and this permission notice
+are preserved on all copies.
+@end format
+
+@c @ignore
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided also that the
+section entitled ``GNU General Public License'' is included exactly as
+in the original, and provided that the entire resulting derived work is
+distributed under the terms of a permission notice identical to this
+one.
+
+Permission is granted to copy and distribute translations of this manual
+into another language, under the above conditions for modified versions,
+except that the section entitled ``GNU General Public License'' may be
+included in a translation approved by the author instead of in the
+original English.
+
+Note (by the translator): Actually, ``GNU General Public License''
+is not included in the original version of this info manual.  
+You will get a copy of it at <https://www.gnu.org/licenses/>.
+@c @end ignore
+@c !END COPYING
+@end ifinfo
+
+@titlepage
+@title Which
+@subtitle コマンドのフルパスを表示する
+@sp 1
+@subtitle Edition @value{EDITION}, for Which Version @value{VERSION}
+@subtitle @value{UPDATED}
+@c !BEGIN AUTHORS
+@author Carlo Wood <@email{carlo@@gnu.org}>
+@author Translated by Linux JM project
+@c !END AUTHORS
+@page
+@vskip 0pt plus 1filll
+Copyright @copyright{} 2000 - 2015, by
+
+Carlo Wood, Run on IRC <carlo@@alinoe.com> RSA-1024 0x624ACAD5 1997-01-26
+Sign & Encrypt Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF
+61
+@sp 1
+Japanese Translation Copyright @copyright{} 2023 Linux JM project
+
+@c The history of the translation
+@c     Translated (version 2.21) Fri Mar  3 11:49:31 JST 2023
+@c         by Chonan Yoichi <cyoichi@maple.con.ne.jp>
+
+@end titlepage
+
+@ifnottex
+@node Top, Which Program, (dir), (dir)
+@top @command{which}: コマンドのフルパスを表示する
+@end ifnottex
+
+@ifinfo
+@c !BEGIN NAME
+@c !END NAME
+@command{which} プログラムは、(シェル) コマンドのフルパスを表示する。
+
+@noindent
+このファイルは、@command{which} version @value{VERSION}
+(@value{UPDATED} に更新) について解説している。
+
+@noindent
+【読者への御注意】これは、GNU 版の @command{which} コマンドのマニュアルである。
+@command{which} の実装には、いくつかの系統があるので、お手元の @command{which}
+が別系統であるときは、オプションなどがここで説明しているものとかなり違うかもしれない。
+そのときは、お手元の @command{which} に付属するマニュアルをご覧になっていただきたい。
+@end ifinfo
+
+@menu
+* Which Program::            @command{which} プログラムについて
+* Invoking Which::           @command{which} の起動
+* Option Summary::           コマンドラインオプション一覧
+* Return Value::             @command{which} の返り値
+* Example::                  用例
+* Bugs::                     既知のバグ
+* See Also::                 関連する UNIX コマンド
+* Index::                    索引
+@end menu
+
+@node Which Program, Invoking Which, Top, Top
+@chapter @command{which} プログラムについて
+@cindex @command{which} の説明
+
+@c !BEGIN DESCRIPTION
+@c !END DESCRIPTION
+@command{Which} は、ひとつ以上の引数を取り、
+そうした引数のそれぞれについて、それがシェルのプロンプトから入力されていたら、
+実行されていたであろう実行ファイルのフルパスを標準出力に表示する。@command{Which}
+は、それを行うに当たり、@command{bash(1)} と同じアルゴリズムを使って、環境変数
+@env{PATH} にリストされたディレクトリを調べ、実行ファイルやスクリプトを捜す。
+
+@node Invoking Which, Option Summary, Which Program, Top
+@chapter @command{which} の起動
+@cindex @command{which} の起動
+@cindex 書式
+
+@noindent
+@command{which} 起動の書式は、次のとおりである。
+
+@c !BEGIN SYNOPSIS
+@example
+which [options] [--] programname [...]
+@end example
+@c !END SYNOPSIS
+
+@c 以下のメニューはない方がよいので、コメントにしておく。
+@c @menu
+@c * Option Summary::           Option summary
+@c @end menu
+
+@node Option Summary, Return Value, Invoking Which, Top
+@chapter オプション一覧
+@cindex オプション、コマンドライン
+@cindex コマンドライン・オプション
+@cindex コマンドラインオプション一覧
+
+@c !BEGIN OPTIONS
+@table @samp
+@cindex @option{--all}
+@cindex @option{-a}
+@item --all
+@itemx -a
+@env{PATH} 中で最初に引数に一致したものだけでなく、一致したすべての実行ファイルを表示する。
+
+@cindex @option{--read-alias}
+@cindex @option{-i}
+@item --read-alias
+@itemx -i
+標準入力からエイリアスを読み込んで、引数に一致するものを標準出力に書き出す。
+このオプションは、which コマンドの代わりにエイリアスを使用する場合に、その中で使うとよい。
+たとえば、次のようにだ。@*
+@code{alias which='alias | which -i'}
+
+@cindex @option{--skip-alias}
+@item --skip-alias
+@option{--read-alias} オプションが指定されていても、それを無視する。
+このオプションは、which の代わりに使うエイリアスや関数で @option{--read-alias}
+オプションを使用している場合に、通常のバイナリを明示的に探すのに役に立つ。
+
+@cindex @option{--read-functions}
+@item --read-functions
+標準入力からシェル関数の定義を読み込んで、引数に一致するものを標準出力に書き出す。
+このオプションは、which コマンドの代わりにシェル関数を使用する場合に、
+その中で使うとよい。たとえば、次のようにだ。@* @code{which () @{ declare -f |
+/usr/bin/which --read-functions $@@; @}@*export -f which}
+
+@cindex @option{--skip-functions}
+@item --skip-functions
+@option{--read-functions} が指定されていても、それを無視する。
+このオプションは、which の代わりに使うエイリアスや関数で @option{--read-functions}
+オプションを使用している場合に、通常のバイナリを明示的に捜すのに役に立つ。
+
+@cindex @option{--skip-dot}
+@item --skip-dot
+環境変数 @env{PATH} 中のドット (.) で始まるパスをスキップする。
+@footnote{環境変数 @env{PATH} に '.' や './bin'、'.local'
+などが登録されている場合のことを言っている。'$HOME/.local'
+といったディレクトリのことではない。そのへんの事情は、@option{--show-dot}
+でも同じである。}
+
+@cindex @option{--skip-tilde}
+@item --skip-tilde
+@env{PATH} 中のチルダ (~) で始まるディレクトリと、@env{HOME}
+ディレクトリ以下にある実行ファイルをスキップする。
+
+@cindex @option{--show-dot}
+@item --show-dot
+@env{PATH} 中にドット (.) で始まるパスがあるとき、
+それに対応するディレクトリで引数に一致する実行ファイルが見つかったら、
+フルパスではなく "./programname" などと表示する。
+
+@cindex @option{--show-tilde}
+@item --show-tilde
+ディレクトリに @env{HOME} ディレクトリが含まれているときは、チルダを出力する。
+このオプションは、@command{which} が root の権限で実行されている場合には無視される。
+
+@cindex @option{--tty-only}
+@item --tty-only
+出力が端末でない場合は、これより右にあるオプションの処理をしない。
+@footnote{このオプションに効果があるのは、@option{--show-dot},
+@option{--show-tilde}, @option{--skip-dot}, @option{--skip-tilde}
+に対してだけのようである。}
+
+@cindex @option{--version}
+@cindex @option{-v}
+@cindex @option{-V}
+@item --version, -v, -V
+バージョン情報を標準出力に表示して、正常終了する。
+
+@cindex @option{--help}
+@item --help
+使用法を標準出力に表示して、正常終了する。
+
+@end table
+@c !END OPTIONS
+
+@node Return Value, Example, Option Summary, Top
+@chapter 返り値
+@cindex @command{which} の返り値
+
+@c !BEGIN RETURNVALUE
+@c !END RETURNVALUE
+@command{Which} は、検索に失敗した引数の個数を返す。引数に
+@file{programname} が指定されなかった場合には、-1 を返す。
+
+@node Example, Bugs, Return Value, Top
+@chapter 用例
+@cindex 用例
+@cindex エイリアスの使用
+
+@c !BEGIN EXAMPLE
+このユーティリティの使用に当たっては、以下のように、エイリアスや
+(C shell の場合) シェル関数に (Bourne shell の場合)、@command{which}
+コマンドの代わりに使用するものを追加しておくことをおすすめする。
+
+[ba]sh:
+
+@example
+@group
+which ()
+@{
+  (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@@
+@}
+export -f which
+@end group
+@end example
+
+[t]csh:
+
+@example
+@group
+alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
+@end group
+@end example
+
+@noindent
+このようにしておくと、which をプロンプトから実行したときには、パスを ~/
+や ./ という読みやすい形で表示するが、スクリプトから使用した場合には、
+通常どおりフルパスの表示になる。@footnote{
+実際には、こうした関数やエイリアスを端末のプロンプトから実行しようと、
+スクリプトから実行しようと、表示に変わりはない。
+出力先が、標準出力や標準エラーか、それ以外かで違いが生じるようである
+(実行例の二番目では、標準入力に出力している)。念のため、ご自分でお試しいただきたい。}
+
+@example
+@group
+> which q2
+~/bin/q2
+> echo `which q2`
+/home/carlo/bin/q2
+@end group
+@end example
+@c !END EXAMPLE
+
+@node Bugs, See Also, Example, Top
+@chapter バグ
+@cindex 既知のバグ
+
+@c !BEGIN BUGS
+@c !END BUGS
+@env{HOME} ディレクトリの特定は、環境変数 @env{HOME}
+を調べることで行われるが、この変数が存在しない場合は、@env{HOME}
+ディレクトリの特定作業は打ち切られる。@footnote{
+この記述は古いようだ。パッケージ同梱の NEWS ファイルによれば、which-2.19
+以来、環境変数 @env{HOME} が設定されていない場合は、/etc/passwd
+ファイルが調べられ、そこでも指定されていない場合は、'/'
+がホームディレクトリになるとのことである。}
+また、@command{Which} は、二つのディレクトリが事実上同じものであっても、
+片方のパスにシンボリックリンクが含まれている場合は、別のディレクトリと見なすことになる。
+
+@node See Also, Index, Bugs, Top
+@chapter 関連項目
+
+@c !BEGIN SEEALSO
+@c !END SEEALSO
+@command{bash(1)}
+
+@node Index, , See Also, Top
+@comment node-name,    next,  previous,       up
+@unnumbered 索引
+
+@printindex cp
+
+@contents
+@bye
diff --git a/info/GNU_which/original/version.texi b/info/GNU_which/original/version.texi
new file mode 100644 (file)
index 0000000..efddb3c
--- /dev/null
@@ -0,0 +1,4 @@
+@set UPDATED 20 March 2015
+@set UPDATED-MONTH March 2015
+@set EDITION 2.21
+@set VERSION 2.21
diff --git a/info/GNU_which/original/which.info b/info/GNU_which/original/which.info
new file mode 100644 (file)
index 0000000..73d57f6
Binary files /dev/null and b/info/GNU_which/original/which.info differ
diff --git a/info/GNU_which/original/which.texi b/info/GNU_which/original/which.texi
new file mode 100644 (file)
index 0000000..5c62214
--- /dev/null
@@ -0,0 +1,287 @@
+\input texinfo   @c -*-texinfo-*-
+@c %**start of header
+@setfilename which.info
+@settitle @command{which}: show full path of commands
+@include version.texi
+@dircategory System administration
+@direntry
+* Which: (which).                               Show full path of commands.
+@end direntry
+@c %**end of header
+
+@setchapternewpage odd
+
+@ifinfo
+@format
+
+@c !BEGIN INTRO
+This file documents `which' version 2.x@.
+@c !END INTRO
+
+@c !BEGIN COPYING
+Copyright @copyright{} 2000 - 2015, by
+
+Carlo Wood, Run on IRC <carlo@@alinoe.com>
+RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
+Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
+
+Permission is granted to make and distribute verbatim copies of
+this manual provided the copyright notice and this permission notice
+are preserved on all copies.
+@end format
+
+@ignore
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided also that the
+section entitled ``GNU General Public License'' is included exactly as
+in the original, and provided that the entire resulting derived work is
+distributed under the terms of a permission notice identical to this
+one.
+
+Permission is granted to copy and distribute translations of this manual
+into another language, under the above conditions for modified versions,
+except that the section entitled ``GNU General Public License'' may be
+included in a translation approved by the author instead of in the
+original English.
+@end ignore
+@c !END COPYING
+@end ifinfo
+
+@titlepage
+@title Which
+@subtitle Show the full path of commands
+@sp 1
+@subtitle Edition @value{EDITION}, for Which Version @value{VERSION}
+@subtitle @value{UPDATED}
+@c !BEGIN AUTHORS
+@author Carlo Wood <@email{carlo@@gnu.org}>
+@c !END AUTHORS
+@page
+@vskip 0pt plus 1filll
+Copyright @copyright{} 2000 - 2015, by
+
+Carlo Wood, Run on IRC <carlo@@alinoe.com>
+RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
+Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
+
+@end titlepage
+
+@ifnottex
+@node Top, Which Program, (dir), (dir)
+@top @command{which}: Show the full path of commands
+@end ifnottex
+
+@ifinfo
+The @command{which} program
+@c !BEGIN NAME
+shows the full path of (shell) commands.
+@c !END NAME
+
+@noindent
+This file documents @command{which} version @value{VERSION}, updated @value{UPDATED}.
+@end ifinfo
+
+@menu
+* Which Program::               The @command{which} Program
+* Invoking Which::              How to invoke @command{which}
+* Option Summary::              Overview of commandline options
+* Return Value::               The return value of @command{which}
+* Example::                    Examples of invokation
+* Bugs::                       Known bugs
+* See Also::                   Related UNIX commands
+* Index::                       Index
+@end menu
+
+@node Which Program, Invoking Which, Top, Top
+@chapter The @command{which} Program
+@cindex Description of @command{which}
+
+@c !BEGIN DESCRIPTION
+@command{Which} takes one or more arguments. For each of its arguments
+it prints to stdout the full path of the executables
+that would have been executed when this argument had been
+entered at the shell prompt. It does this by searching
+for an executable or script in the directories listed in
+the environment variable @env{PATH} using the same algorithm as @command{bash(1)}.
+@c !END DESCRIPTION
+
+@node    Invoking Which, Option Summary, Which Program, Top
+@chapter Invoking @command{which}
+@cindex Invoking @command{which}
+@cindex Synopsis
+
+@noindent
+The synopsis to invoke @command{which} is
+
+@c !BEGIN SYNOPSIS
+@example
+which [options] [--] programname [...]
+@end example
+@c !END SYNOPSIS
+
+@menu
+* Option Summary::        Option summary
+@end menu
+
+@node    Option Summary, Return Value, Invoking Which, Top
+@chapter Option Summary
+@cindex Options, command line
+@cindex Command line Options
+@cindex Overview of command line options
+
+@c !BEGIN OPTIONS
+@table @samp
+@cindex @option{--all}
+@cindex @option{-a}
+@item --all
+@itemx -a
+Print all matching executables in @env{PATH}, not just the first.
+
+@cindex @option{--read-alias}
+@cindex @option{-i}
+@item --read-alias
+@itemx -i
+Read aliases from stdin, reporting matching ones on
+stdout. This is useful in combination with using an
+alias for which itself. For example@*
+@code{alias which='alias | which -i'}.
+
+@cindex @option{--skip-alias}
+@item --skip-alias
+Ignore option @option{--read-alias}, if any. This is useful to
+explicity search for normal binaries, while using
+the @option{--read-alias} option in an alias or function for which.
+
+@cindex @option{--read-functions}
+@item --read-functions
+Read shell function definitions from stdin, reporting matching
+ones on stdout. This is useful in combination with using a shell
+function for which itself.  For example:@*
+@code{which() @{ declare -f | which --read-functions $@@ @}@*export -f which}
+
+@cindex @option{--skip-functions}
+@item --skip-functions
+Ignore option @option{--read-functions}, if any. This is useful to
+explicity search for normal binaries, while using
+the @option{--read-functions} option in an alias or function for which.
+
+@cindex @option{--skip-dot}
+@item --skip-dot
+Skip directories in @env{PATH} that start with a dot.
+
+@cindex @option{--skip-tilde}
+@item --skip-tilde
+Skip directories in @env{PATH} that start with a tilde and
+executables which reside in the @env{HOME} directory.
+
+@cindex @option{--show-dot}
+@item --show-dot
+If a directory in @env{PATH} starts with a dot and a matching
+executable was found for that path, then print
+"./programname" rather than the full path.
+
+@cindex @option{--show-tilde}
+@item --show-tilde
+Output a tilde when a directory matches the @env{HOME}
+directory. This option is ignored when which is
+invoked as root.
+
+@cindex @option{--tty-only}
+@item --tty-only
+Stop processing options on the right if not on tty.
+
+@cindex @option{--version}
+@cindex @option{-v}
+@cindex @option{-V}
+@item --version, -v, -V
+Print version information on standard output then exit
+successfully.
+
+@cindex @option{--help}
+@item --help
+Print usage information on standard output then exit
+successfully.
+
+@end table
+@c !END OPTIONS
+
+@node    Return Value, Example, Option Summary, Top
+@chapter Return Value
+@cindex Return value of @command{which}
+
+@c !BEGIN RETURNVALUE
+@command{Which} returns the number of failed arguments, or -1 when
+no @file{programname} was given.
+@c !END RETURNVALUE
+
+@node    Example, Bugs, Return Value, Top
+@chapter Example
+@cindex Examples
+@cindex aliases, handling of
+
+@c !BEGIN EXAMPLE
+The recommended way to use this utility is by adding an alias (C shell)
+or shell function (Bourne shell) for @command{which} like the following:
+
+[ba]sh:
+
+@example
+@group
+which ()
+@{
+  (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@@
+@}
+export -f which
+@end group
+@end example
+
+[t]csh:
+
+@example
+@group
+alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
+@end group
+@end example
+
+@noindent
+This will print the readable ~/ and ./ when starting which
+from your prompt, while still printing the full path when
+used from a script:
+
+@example
+@group
+> which q2
+~/bin/q2
+> echo `which q2`
+/home/carlo/bin/q2
+@end group
+@end example
+@c !END EXAMPLE
+
+@node    Bugs, See Also, Example, Top
+@chapter Bugs
+@cindex Bugs, known
+
+@c !BEGIN BUGS
+The @env{HOME} directory is determined by looking for the @env{HOME}
+environment variable, which aborts when this variable
+doesn't exist.  @command{Which} will consider two equivalent directories
+to be different when one of them contains a path
+with a symbolic link.
+@c !END BUGS
+
+@node    See Also, Index, Bugs, Top
+@chapter See Also
+
+@c !BEGIN SEEALSO
+@command{bash(1)}
+@c !END SEEALSO
+
+@node    Index,            ,  See Also, Top
+@comment node-name,    next,  previous,       up
+@unnumbered Index
+
+@printindex cp
+
+@contents
+@bye
diff --git a/info/GNU_which/po4a/memo.txt b/info/GNU_which/po4a/memo.txt
new file mode 100644 (file)
index 0000000..09b6bb1
--- /dev/null
@@ -0,0 +1,137 @@
+翻訳を更新してくださる方への連絡事項
+
+○ which-ja.info というファイル名について
+
+  info マニュアルは、/usr/share/info ディレクトリに入れるのが基本です
+  (ファイルは gzip で圧縮してもよい)。そのため、英語版と翻訳のマニュアルが
+  同じディレクトリに同居することになるので、英語版の which.info と区別
+  するために、日本語版のファイル名を which-ja.info にしています。
+
+  なお、これは翻訳者より、info マニュアルの利用者に対する注意書きですが、
+  ついでに書いておきます。which-ja.info を info マニュアル群のトップ
+  メニューに登録するには、/usr/share/info に移動し、root 権限で次の
+  コマンドを実行します。ファイルを圧縮している場合でも、".gz" は付けても
+  付けなくても構いません。二つ目の引数 dir は、/usr/share/info/dir という
+  登録先のメニューファイルです。
+
+    install-info which-ja.info dir
+
+○ texinfo と po4a の問題点
+
+  texinfo の、すなわち info プログラムの多国語対応は (我々にとっては、
+  日本語対応ですが)、現時点では完全ではありません (texinfo-7.0)。
+  一応、メニューやノード名に UTF-8 の文字を使うことはできます。つまり、
+  メニュー名などをドイツ語、フランス語、中国語、日本語などにすることは
+  でき、そうしたメニュー項目にカーソルを合わせて、リターンキーを押せば、
+  その項目に飛ぶことができます。しかし、メニュー項目名やノード名が英語
+  (つまり、ASCII  文字集合の文字) でないと、info マニュアルを info 
+  プログラムで読んでいる場合に、m コマンド (メニュー選択) や g コマンド
+  (指定したノードに移動) がうまく動かなくなります。m や g コマンドで
+  入力文字の補完をしようと Tab キーを押しても、m や g に続く入力文字中に
+  ASCII 以外の文字があると、文字列の補完に失敗してしまうのです。文字列の
+  補完ができないと、info プログラムは、ほとんど使い物にならないほど、
+  使いにくくなります (Emacs の info  リーダーなら、日本語や中国語でも
+  問題なく入力文字の補完ができるようです)。私がメニュー名やノード名を
+  英語のままにしているのは、それが理由です。
+
+  そのことに関連しますが、texinfo と po4a の相性もあまりよくありません。
+  po4a の作成する texi では、英語のままにしておきたいところが日本語に、
+  日本語にしたいところが英語になってしまうことがあります。しかも、
+  この修正は、po4a の addendum ではうまくできません。現在のところ、
+  addendum は、テキストの追加はできても、変更や削除はできないからです。
+  そんなわけで、po4a の作った texi ファイルの修正は、手作業でやるか、
+  パッチを使うかということになります。
+
+○ パッチについて
+
+  which-ja.texi.patch は po ファイルから作った which-ja.texi に当てるものです。
+  version.texi.patch の方は、original/version.texi に直接当てます。これは、
+  "@set UPDATED 20 March 2015" を "@set UPDATED 2015-03-20" に書き換えて
+  いるだけです。ですから、patch を使わずに、手で書き換えても構いません。
+
+  po ファイル、texi ファイル、patch ファイル、info ファイルの関係の説明を単純化
+  するため、仮に which.texi (原文), version.texi (原文), which-ja.po,
+  version.texi.patch, which-ja.texi.patch が、同一ディレクトリにあるとします。
+  その場合、たとえば、こんなふうに実行します。
+
+  $ po4a-translate -f texinfo -m which.texi -p which-ja.po -l which-ja.texi -v
+  $ patch -p0 <which-ja.texi.patch
+  $ patch -p0 <version.texi.patch
+  $ makeinfo which-ja.texi
+
+  それから、作成した version.texi, which-ja.texi, which-ja.info を
+  draft ディレクトリなり、release ディレクトリなりへ移動するわけです。
+
+  なお、このパッチは、Version 2.21 の日本語 texi ファイルに対して
+  作ったものですから、バージョンアップがあれば、当然ながら、新しい 
+  which-ja.texi に当てても、失敗する箇所が出てくると思います。
+  そのときは、reject ファイルを参考に  which-ja.texi を手作業で修正します。
+  それから、パッチを当てる前の which-ja.texi (たとえば、which-ja.texi.temp 
+  という名前で保存しておく) との間で "diff -u" をして、新しいパッチを作って
+  ください。
+○ pdf と html ファイル
+
+  ついでに、texi ファイルを pdf や html に変換することについて
+  注意点を書いておきます。
+
+・ pdf ファイル
+
+  texinfo が 6.3 以降なら、pdf ファイルを作って、印刷することが出来ます。
+  ただしそれには、LuaTex 0.95 以降、または XeTeX 0.9998 以降 (後者の場合は、
+  zhspacing も)、それに、texinfo-ja.tex ファイルが必要だそうです。
+
+  LuaTex や XeTex は、たぶんお使いのディストリビューションにパッケージが
+  存在するでしょう。zhspacing は、debian では texlive-lang-chinese
+  パッケージに入っているようです。texinfo-ja.tex は、たぶん texinfo
+  パッケージに入っています。
+
+  texinfo 6.3 以降を使っている場合でも、texinfo-ja.tex が存在しない
+  ことがあるかもしれません。その場合は、texinfo の開発元から
+  (https://www.gnu.org/software/texinfo/) texinfo の新しいパッケージを
+  もらって来て、texinfo-ja.tex を取り出し、which-ja.texi や version.texi 
+  と同じディレクトリに入れてください。texinfo.tex と txi-ja.tex も、
+  開発元のバージョンを同じディレクトリに入れておいた方が無難かもしれません。
+  そうしたものはシステムにも存在するはずですが、バージョンの違いで処理が
+  中断することがあるからです。
+
+  ここでは、LuaTex を使う方法を書いておきます。
+
+  which-ja.texi を少し変更します。まず、冒頭の行を
+
+    \input texinfo
+
+  から
+
+    \input texinfo-ja 
+
+  に書き換えます。それから、次の二行を  "@setfilename which-ja.info" の
+  下あたりに追加します。
+
+    @documentencoding UTF-8 (これは、たぶんすでに書いてあります)
+    @documentlanguage ja
+
+  そして、以下を実行します。
+
+    $ PDFTEX=luatex texi2pdf which-ja.texi
+
+  より詳しくは、texinfo-ja.tex の作者である細田さんのお書きになった記事を
+  ご覧ください。
+
+    http://www.trueroad.jp/2016/05/14-01.html
+    http://www.trueroad.jp/2016/09/18-01.html
+
+・ html ファイル
+
+  これも version.text と which-ja.texi があれば、texi2html で簡単に
+  作れます。ただし、texi ファイルに "@documentlanguage ja" の指定を
+  してはいけません。これがあると、[Contents] とか "Jump to:" といった
+  文字が化けます。
+
+  html ファイルは、texi2html ではなく、"makeinfo --html --no-split" を
+  使って作ることもできます。makeinfo を使う場合は、"@documentlanguage ja" 
+  があっても、問題がないようです。
+
+-- 
+cyoichi (2023/03/03)
+
diff --git a/info/GNU_which/po4a/version.texi.patch b/info/GNU_which/po4a/version.texi.patch
new file mode 100644 (file)
index 0000000..23545a7
--- /dev/null
@@ -0,0 +1,9 @@
+--- version.texi.temp  2023-01-27 22:01:14.684324013 +0900
++++ version.texi       2023-01-23 10:35:55.080798476 +0900
+@@ -1,4 +1,5 @@
+-@set UPDATED 20 March 2015
++@c @set UPDATED 20 March 2015
++@set UPDATED 2015-03-20
+ @set UPDATED-MONTH March 2015
+ @set EDITION 2.21
+ @set VERSION 2.21
diff --git a/info/GNU_which/po4a/which-ja.po b/info/GNU_which/po4a/which-ja.po
new file mode 100644 (file)
index 0000000..35ffca9
--- /dev/null
@@ -0,0 +1,653 @@
+# SOME DESCRIPTIVE TITLE
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2023-01-21 10:25+0900\n"
+"PO-Revision-Date: 2023-05-28 22:24+0900\n"
+"Last-Translator: Chonan Yoichi <cyoichi@maple.ocn.ne.jp>\n"
+"Language-Team: Linux JM project <linuxjm-discuss@lists.osdn.me>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: settitle
+#: which.texi:4
+#, no-wrap
+msgid "@command{which}: show full path of commands"
+msgstr "@command{which}: コマンドのフルパスを表示する"
+
+#. type: include
+#: which.texi:5
+#, no-wrap
+msgid "version.texi"
+msgstr "version.texi"
+
+#. type: dircategory
+#: which.texi:6
+#, no-wrap
+msgid "System administration"
+msgstr "System administration"
+
+#. type: menuentry
+#: which.texi:9
+msgid "Which: (which)"
+msgstr "Which-ja: (which-ja)"
+
+#. type: menuentry
+#: which.texi:9
+msgid "Show full path of commands."
+msgstr "Show full path of commands."
+
+#. type: format
+#: which.texi:20
+#, no-wrap
+msgid ""
+"This file documents `which' version 2.x@.\n"
+"\n"
+msgstr "This file documents `which' version 2.x@.\n\n"
+
+#. type: format
+#: which.texi:23
+#, no-wrap
+msgid ""
+"Copyright @copyright{} 2000 - 2015, by\n"
+"\n"
+msgstr "Copyright @copyright{} 2000 - 2015, by\n\n"
+
+#. type: format
+#: which.texi:27
+#, no-wrap
+msgid ""
+"Carlo Wood, Run on IRC <carlo@@alinoe.com>\n"
+"RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt\n"
+"Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61\n"
+"\n"
+msgstr ""
+"Carlo Wood, Run on IRC <carlo@@alinoe.com>\n"
+"RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt\n"
+"Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61\n"
+"\n"
+
+#. type: format
+#: which.texi:31
+#, no-wrap
+msgid ""
+"Permission is granted to make and distribute verbatim copies of\n"
+"this manual provided the copyright notice and this permission notice\n"
+"are preserved on all copies.\n"
+msgstr ""
+"Permission is granted to make and distribute verbatim copies of\n"
+"this manual provided the copyright notice and this permission notice\n"
+"are preserved on all copies.\n"
+
+#. type: title
+#: which.texi:51
+#, no-wrap
+msgid "Which"
+msgstr "Which"
+
+#. type: subtitle
+#: which.texi:52
+#, no-wrap
+msgid "Show the full path of commands"
+msgstr "コマンドのフルパスを表示する"
+
+#. type: subtitle
+#: which.texi:54
+#, no-wrap
+msgid "Edition @value{EDITION}, for Which Version @value{VERSION}"
+msgstr "Edition @value{EDITION}, for Which Version @value{VERSION}"
+
+#. type: subtitle
+#: which.texi:55
+#, no-wrap
+msgid "@value{UPDATED}"
+msgstr "@value{UPDATED}"
+
+#. type: author
+#: which.texi:57
+#, no-wrap
+msgid "Carlo Wood <@email{carlo@@gnu.org}>"
+msgstr "Carlo Wood <@email{carlo@@gnu.org}>"
+
+#. type: titlepage
+#: which.texi:62
+msgid "Copyright @copyright{} 2000 - 2015, by"
+msgstr "Copyright @copyright{} 2000 - 2015, by"
+
+#. type: titlepage
+#: which.texi:66
+msgid ""
+"Carlo Wood, Run on IRC <carlo@@alinoe.com> RSA-1024 0x624ACAD5 1997-01-26 "
+"Sign & Encrypt Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF "
+"61"
+msgstr "Carlo Wood, Run on IRC <carlo@@alinoe.com> RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61"
+
+#. type: node
+#: which.texi:70 which.texi:95 which.texi:108 which.texi:126 which.texi:208 which.texi:217 which.texi:261 which.texi:273 which.texi:280
+#, no-wrap
+msgid "Top"
+msgstr "Top"
+
+#. type: node
+#: which.texi:70 which.texi:93 which.texi:95 which.texi:108
+#, no-wrap
+msgid "Which Program"
+msgstr "Which Program"
+
+#. type: node
+#: which.texi:70
+#, no-wrap
+msgid "(dir)"
+msgstr "(dir)"
+
+#. type: top
+#: which.texi:71
+#, no-wrap
+msgid "@command{which}: Show the full path of commands"
+msgstr "@command{which}: コマンドのフルパスを表示する"
+
+#. type: ifinfo
+#: which.texi:79
+msgid "The @command{which} program shows the full path of (shell) commands."
+msgstr "@command{which} プログラムは、(シェル) コマンドのフルパスを表示する。"
+
+#. type: ifinfo
+#: which.texi:82
+msgid ""
+"This file documents @command{which} version @value{VERSION}, updated "
+"@value{UPDATED}."
+msgstr ""
+"このファイルは、@command{which} version @value{VERSION}\n"
+"(@value{UPDATED} に更新) について解説している。"
+
+#. type: chapter
+#: which.texi:93 which.texi:96
+#, no-wrap
+msgid "The @command{which} Program"
+msgstr "@command{which} プログラムについて"
+
+#. type: node
+#: which.texi:93 which.texi:95 which.texi:108 which.texi:126
+#, no-wrap
+msgid "Invoking Which"
+msgstr "Invoking Which"
+
+#. type: menuentry
+#: which.texi:93
+msgid "How to invoke @command{which}"
+msgstr "@command{which} の起動"
+
+#. type: node
+#: which.texi:93 which.texi:108 which.texi:124 which.texi:126 which.texi:127 which.texi:208
+#, no-wrap
+msgid "Option Summary"
+msgstr "Option Summary"
+
+#. type: menuentry
+#: which.texi:93
+msgid "Overview of commandline options"
+msgstr "コマンドラインオプション一覧"
+
+#. type: node
+#: which.texi:93 which.texi:126 which.texi:208 which.texi:209 which.texi:217
+#, no-wrap
+msgid "Return Value"
+msgstr "Return Value"
+
+#. type: menuentry
+#: which.texi:93
+msgid "The return value of @command{which}"
+msgstr "@command{which} の返り値"
+
+#. type: node
+#: which.texi:93 which.texi:208 which.texi:217 which.texi:218 which.texi:261
+#, no-wrap
+msgid "Example"
+msgstr "Example"
+
+#. type: menuentry
+#: which.texi:93
+msgid "Examples of invokation"
+msgstr "用例"
+
+#. type: node
+#: which.texi:93 which.texi:217 which.texi:261 which.texi:262 which.texi:273
+#, no-wrap
+msgid "Bugs"
+msgstr "Bugs"
+
+#. type: menuentry
+#: which.texi:93
+msgid "Known bugs"
+msgstr "既知のバグ"
+
+#. type: node
+#: which.texi:93 which.texi:261 which.texi:273 which.texi:274 which.texi:280
+#, no-wrap
+msgid "See Also"
+msgstr "See Also"
+
+#. type: menuentry
+#: which.texi:93
+msgid "Related UNIX commands"
+msgstr "関連する UNIX コマンド"
+
+#. type: unnumbered
+#: which.texi:93 which.texi:273 which.texi:280 which.texi:282
+#, no-wrap
+msgid "Index"
+msgstr "Index"
+
+#. type: cindex
+#: which.texi:97
+#, no-wrap
+msgid "Description of @command{which}"
+msgstr "@command{which} の説明"
+
+#. type: Plain text
+#: which.texi:107
+msgid ""
+"@command{Which} takes one or more arguments. For each of its arguments it "
+"prints to stdout the full path of the executables that would have been "
+"executed when this argument had been entered at the shell prompt. It does "
+"this by searching for an executable or script in the directories listed in "
+"the environment variable @env{PATH} using the same algorithm as "
+"@command{bash(1)}."
+msgstr ""
+"@command{Which} は、ひとつ以上の引数を取り、\n"
+"そうした引数のそれぞれについて、それがシェルのプロンプトから入力されていたら、\n"
+"実行されていたであろう実行ファイルのフルパスを標準出力に表示する。@command{Which}\n"
+"は、それを行うに当たり、@command{bash(1)} と同じアルゴリズムを使って、環境変数\n"
+"@env{PATH} にリストされたディレクトリを調べ、実行ファイルやスクリプトを捜す。"
+
+#. type: cindex
+#: which.texi:109 which.texi:110
+#, no-wrap
+msgid "Invoking @command{which}"
+msgstr "@command{which} の起動"
+
+#. type: cindex
+#: which.texi:111
+#, no-wrap
+msgid "Synopsis"
+msgstr "書式"
+
+#. type: Plain text
+#: which.texi:115
+msgid "The synopsis to invoke @command{which} is"
+msgstr "@command{which} 起動の書式は、次のとおりである。"
+
+#. type: example
+#: which.texi:119
+#, no-wrap
+msgid "which [options] [--] programname [...]\n"
+msgstr "which [options] [--] programname [...]\n"
+
+#. type: menuentry
+#: which.texi:124
+msgid "Option summary"
+msgstr "Option summary"
+
+#. type: cindex
+#: which.texi:128
+#, no-wrap
+msgid "Options, command line"
+msgstr "オプション、コマンドライン"
+
+#. type: cindex
+#: which.texi:129
+#, no-wrap
+msgid "Command line Options"
+msgstr "コマンドライン・オプション"
+
+#. type: cindex
+#: which.texi:130
+#, no-wrap
+msgid "Overview of command line options"
+msgstr "コマンドラインオプション一覧"
+
+#. type: item
+#: which.texi:134 which.texi:136
+#, no-wrap
+msgid "--all"
+msgstr "--all"
+
+#. type: itemx
+#: which.texi:135 which.texi:137
+#, no-wrap
+msgid "-a"
+msgstr "-a"
+
+#. type: table
+#: which.texi:139
+msgid "Print all matching executables in @env{PATH}, not just the first."
+msgstr "@env{PATH} 中で最初に引数に一致したものだけでなく、一致したすべての実行ファイルを表示する。"
+
+#. type: item
+#: which.texi:140 which.texi:142
+#, no-wrap
+msgid "--read-alias"
+msgstr "--read-alias"
+
+#. type: itemx
+#: which.texi:141 which.texi:143
+#, no-wrap
+msgid "-i"
+msgstr "-i"
+
+#. type: table
+#: which.texi:148
+msgid ""
+"Read aliases from stdin, reporting matching ones on stdout. This is useful "
+"in combination with using an alias for which itself. For example@* "
+"@code{alias which='alias | which -i'}."
+msgstr ""
+"標準入力からエイリアスを読み込んで、引数に一致するものを標準出力に書き出す。\n"
+"このオプションは、which コマンドの代わりにエイリアスを使用する場合に、その中で使うとよい。\n"
+"たとえば、次のようにだ。@*\n"
+"@code{alias which='alias | which -i'}"
+
+#. type: item
+#: which.texi:149 which.texi:150
+#, no-wrap
+msgid "--skip-alias"
+msgstr "--skip-alias"
+
+#. type: table
+#: which.texi:154
+msgid ""
+"Ignore option @option{--read-alias}, if any. This is useful to explicity "
+"search for normal binaries, while using the @option{--read-alias} option in "
+"an alias or function for which."
+msgstr ""
+"@option{--read-alias} オプションが指定されていても、それを無視する。\n"
+"このオプションは、which の代わりに使うエイリアスや関数で @option{--read-alias}\n"
+"オプションを使用している場合に、通常のバイナリを明示的に探すのに役に立つ。"
+
+#. type: item
+#: which.texi:155 which.texi:156
+#, no-wrap
+msgid "--read-functions"
+msgstr "--read-functions"
+
+#. type: table
+#: which.texi:161
+msgid ""
+"Read shell function definitions from stdin, reporting matching ones on "
+"stdout. This is useful in combination with using a shell function for which "
+"itself.  For example:@* @code{which() @{ declare -f | which --read-functions "
+"$@@ @}@*export -f which}"
+msgstr ""
+"標準入力からシェル関数の定義を読み込んで、引数に一致するものを標準出力に書き出す。\n"
+"このオプションは、which コマンドの代わりにシェル関数を使用する場合に、\n"
+"その中で使うとよい。たとえば、次のようにだ。@* @code{which () @{ declare -f |\n"
+"/usr/bin/which --read-functions $@@; @}@*export -f which}"
+
+#. type: item
+#: which.texi:162 which.texi:163
+#, no-wrap
+msgid "--skip-functions"
+msgstr "--skip-functions"
+
+#. type: table
+#: which.texi:167
+msgid ""
+"Ignore option @option{--read-functions}, if any. This is useful to explicity "
+"search for normal binaries, while using the @option{--read-functions} option "
+"in an alias or function for which."
+msgstr ""
+"@option{--read-functions} が指定されていても、それを無視する。\n"
+"このオプションは、which の代わりに使うエイリアスや関数で @option{--read-functions}\n"
+"オプションを使用している場合に、通常のバイナリを明示的に捜すのに役に立つ。"
+
+#. type: item
+#: which.texi:168 which.texi:169
+#, no-wrap
+msgid "--skip-dot"
+msgstr "--skip-dot"
+
+#. type: table
+#: which.texi:171
+msgid "Skip directories in @env{PATH} that start with a dot."
+msgstr ""
+"環境変数 @env{PATH} 中のドット (.) で始まるパスをスキップする。\n"
+"@footnote{環境変数 @env{PATH} に '.' や './bin'、'.local'\n"
+"などが登録されている場合のことを言っている。'$HOME/.local'\n"
+"といったディレクトリのことではない。そのへんの事情は、@option{--show-dot}\n"
+"でも同じである。}"
+
+#. type: item
+#: which.texi:172 which.texi:173
+#, no-wrap
+msgid "--skip-tilde"
+msgstr "--skip-tilde"
+
+#. type: table
+#: which.texi:176
+msgid ""
+"Skip directories in @env{PATH} that start with a tilde and executables which "
+"reside in the @env{HOME} directory."
+msgstr ""
+"@env{PATH} 中のチルダ (~) で始まるディレクトリと、@env{HOME}\n"
+"ディレクトリ以下にある実行ファイルをスキップする。"
+
+#. type: item
+#: which.texi:177 which.texi:178
+#, no-wrap
+msgid "--show-dot"
+msgstr "--show-dot"
+
+#. type: table
+#: which.texi:182
+msgid ""
+"If a directory in @env{PATH} starts with a dot and a matching executable was "
+"found for that path, then print \"./programname\" rather than the full path."
+msgstr ""
+"@env{PATH} 中にドット (.) で始まるパスがあるとき、\n"
+"それに対応するディレクトリで引数に一致する実行ファイルが見つかったら、\n"
+"フルパスではなく \"./programname\" などと表示する。"
+
+#. type: item
+#: which.texi:183 which.texi:184
+#, no-wrap
+msgid "--show-tilde"
+msgstr "--show-tilde"
+
+#. type: table
+#: which.texi:188
+msgid ""
+"Output a tilde when a directory matches the @env{HOME} directory. This "
+"option is ignored when which is invoked as root."
+msgstr ""
+"ディレクトリに @env{HOME} ディレクトリが含まれているときは、チルダを出力する。\n"
+"このオプションは、@command{which} が root の権限で実行されている場合には無視される。"
+
+#. type: item
+#: which.texi:189 which.texi:190
+#, no-wrap
+msgid "--tty-only"
+msgstr "--tty-only"
+
+#. type: table
+#: which.texi:192
+msgid "Stop processing options on the right if not on tty."
+msgstr ""
+"出力が端末でない場合は、これより右にあるオプションの処理をしない。\n"
+"@footnote{このオプションに効果があるのは、@option{--show-dot},\n"
+"@option{--show-tilde}, @option{--skip-dot}, @option{--skip-tilde}\n"
+"に対してだけのようである。}"
+
+#. type: option{#1}
+#: which.texi:193
+#, no-wrap
+msgid "--version"
+msgstr "--version"
+
+#. type: option{#1}
+#: which.texi:194
+#, no-wrap
+msgid "-v"
+msgstr "-v"
+
+#. type: option{#1}
+#: which.texi:195
+#, no-wrap
+msgid "-V"
+msgstr "-V"
+
+#. type: item
+#: which.texi:196
+#, no-wrap
+msgid "--version, -v, -V"
+msgstr "--version, -v, -V"
+
+#. type: table
+#: which.texi:199
+msgid "Print version information on standard output then exit successfully."
+msgstr "バージョン情報を標準出力に表示して、正常終了する。"
+
+#. type: item
+#: which.texi:200 which.texi:201
+#, no-wrap
+msgid "--help"
+msgstr "--help"
+
+#. type: table
+#: which.texi:204
+msgid "Print usage information on standard output then exit successfully."
+msgstr "使用法を標準出力に表示して、正常終了する。"
+
+#. type: cindex
+#: which.texi:210
+#, no-wrap
+msgid "Return value of @command{which}"
+msgstr "@command{which} の返り値"
+
+#. type: Plain text
+#: which.texi:216
+msgid ""
+"@command{Which} returns the number of failed arguments, or -1 when no "
+"@file{programname} was given."
+msgstr ""
+"@command{Which} は、検索に失敗した引数の個数を返す。引数に\n"
+"@file{programname} が指定されなかった場合には、-1 を返す。"
+
+#. type: cindex
+#: which.texi:219
+#, no-wrap
+msgid "Examples"
+msgstr "用例"
+
+#. type: cindex
+#: which.texi:220
+#, no-wrap
+msgid "aliases, handling of"
+msgstr "エイリアスの使用"
+
+#. type: Plain text
+#: which.texi:225
+msgid ""
+"The recommended way to use this utility is by adding an alias (C shell)  or "
+"shell function (Bourne shell) for @command{which} like the following:"
+msgstr ""
+"このユーティリティの使用に当たっては、以下のように、エイリアスや\n"
+"(C shell の場合) シェル関数に (Bourne shell の場合)、@command{which}\n"
+"コマンドの代わりに使用するものを追加しておくことをおすすめする。"
+
+#. type: Plain text
+#: which.texi:227
+msgid "[ba]sh:"
+msgstr "[ba]sh:"
+
+#. type: group
+#: which.texi:235
+#, no-wrap
+msgid ""
+"which ()\n"
+"@{\n"
+"  (alias; declare -f) | /usr/bin/which --tty-only --read-alias "
+"--read-functions --show-tilde --show-dot $@@\n"
+"@}\n"
+"export -f which\n"
+msgstr ""
+"which ()\n"
+"@{\n"
+"  (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@@\n"
+"@}\n"
+"export -f which\n"
+
+#. type: Plain text
+#: which.texi:239
+msgid "[t]csh:"
+msgstr "[t]csh:"
+
+#. type: group
+#: which.texi:243
+#, no-wrap
+msgid ""
+"alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot "
+"--show-tilde'\n"
+msgstr "alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'\n"
+
+#. type: Plain text
+#: which.texi:250
+msgid ""
+"This will print the readable ~/ and ./ when starting which from your prompt, "
+"while still printing the full path when used from a script:"
+msgstr ""
+"このようにしておくと、which をプロンプトから実行したときには、パスを ~/\n"
+"や ./ という読みやすい形で表示するが、スクリプトから使用した場合には、\n"
+"通常どおりフルパスの表示になる。@footnote{\n"
+"実際には、こうした関数やエイリアスを端末のプロンプトから実行しようと、\n"
+"スクリプトから実行しようと、表示に変わりはない。\n"
+"出力先が、標準出力や標準エラーか、それ以外かで違いが生じるようである\n"
+"(実行例の二番目では、標準入力に出力している)。念のため、ご自分でお試しいただきたい。}"
+
+#. type: group
+#: which.texi:257
+#, no-wrap
+msgid ""
+"> which q2\n"
+"~/bin/q2\n"
+"> echo `which q2`\n"
+"/home/carlo/bin/q2\n"
+msgstr ""
+"> which q2\n"
+"~/bin/q2\n"
+"> echo `which q2`\n"
+"/home/carlo/bin/q2\n"
+
+#. type: cindex
+#: which.texi:263
+#, no-wrap
+msgid "Bugs, known"
+msgstr "既知のバグ"
+
+#. type: Plain text
+#: which.texi:272
+msgid ""
+"The @env{HOME} directory is determined by looking for the @env{HOME} "
+"environment variable, which aborts when this variable doesn't exist.  "
+"@command{Which} will consider two equivalent directories to be different "
+"when one of them contains a path with a symbolic link."
+msgstr ""
+"@env{HOME} ディレクトリの特定は、環境変数 @env{HOME}\n"
+"を調べることで行われるが、この変数が存在しない場合は、@env{HOME}\n"
+"ディレクトリの特定作業は打ち切られる。@footnote{\n"
+"この記述は古いようだ。パッケージ同梱の NEWS ファイルによれば、which-2.19\n"
+"以来、環境変数 @env{HOME} が設定されていない場合は、/etc/passwd\n"
+"ファイルが調べられ、そこでも指定されていない場合は、'/'\n"
+"がホームディレクトリになるとのことである。}\n"
+"また、@command{Which} は、二つのディレクトリが事実上同じものであっても、\n"
+"片方のパスにシンボリックリンクが含まれている場合は、別のディレクトリと見なすことになる。"
+
+#. type: command{#1}
+#: which.texi:279
+msgid "bash(1)"
+msgstr "bash(1)"
diff --git a/info/GNU_which/po4a/which-ja.texi.patch b/info/GNU_which/po4a/which-ja.texi.patch
new file mode 100644 (file)
index 0000000..427017d
--- /dev/null
@@ -0,0 +1,147 @@
+--- which-ja.texi.temp 2023-04-23 11:32:13.018695307 +0900
++++ which-ja.texi      2023-04-23 11:32:23.649345883 +0900
+@@ -5,7 +5,8 @@
+ @c
+ @c ===========================================================================
+ @c %**start of header
+-@setfilename which.info
++@setfilename which-ja.info
++@documentencoding UTF-8
+ @settitle @command{which}: コマンドのフルパスを表示する
+ @include version.texi
+ @dircategory System administration
+@@ -30,12 +31,14 @@
+ RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
+ Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
++Japanese Translation Copyright @copyright{} 2023 Linux JM project
++
+ Permission is granted to make and distribute verbatim copies of
+ this manual provided the copyright notice and this permission notice
+ are preserved on all copies.
+ @end format
+-@ignore
++@c @ignore
+ Permission is granted to copy and distribute modified versions of this
+ manual under the conditions for verbatim copying, provided also that the
+ section entitled ``GNU General Public License'' is included exactly as
+@@ -48,7 +51,11 @@
+ except that the section entitled ``GNU General Public License'' may be
+ included in a translation approved by the author instead of in the
+ original English.
+-@end ignore
++
++Note (by the translator): Actually, ``GNU General Public License''
++is not included in the original version of this info manual.  
++You will get a copy of it at <https://www.gnu.org/licenses/>.
++@c @end ignore
+ @c !END COPYING
+ @end ifinfo
+@@ -60,6 +67,7 @@
+ @subtitle @value{UPDATED}
+ @c !BEGIN AUTHORS
+ @author Carlo Wood <@email{carlo@@gnu.org}>
++@author Translated by Linux JM project
+ @c !END AUTHORS
+ @page
+ @vskip 0pt plus 1filll
+@@ -68,6 +76,12 @@
+ Carlo Wood, Run on IRC <carlo@@alinoe.com> RSA-1024 0x624ACAD5 1997-01-26
+ Sign & Encrypt Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF
+ 61
++@sp 1
++Japanese Translation Copyright @copyright{} 2023 Linux JM project
++
++@c The history of the translation
++@c     Translated (version 2.21) Fri Mar  3 11:49:31 JST 2023
++@c         by Chonan Yoichi <cyoichi@maple.con.ne.jp>
+ @end titlepage
+@@ -84,6 +98,12 @@
+ @noindent
+ このファイルは、@command{which} version @value{VERSION}
+ (@value{UPDATED} に更新) について解説している。
++
++@noindent
++【読者への御注意】これは、GNU 版の @command{which} コマンドのマニュアルである。
++@command{which} の実装には、いくつかの系統があるので、お手元の @command{which}
++が別系統であるときは、オプションなどがここで説明しているものとかなり違うかもしれない。
++そのときは、お手元の @command{which} に付属するマニュアルをご覧になっていただきたい。
+ @end ifinfo
+ @menu
+@@ -94,7 +114,7 @@
+ * Example::                  用例
+ * Bugs::                     既知のバグ
+ * See Also::                 関連する UNIX コマンド
+-* Index::                    Index
++* Index::                    索引
+ @end menu
+ @node Which Program, Invoking Which, Top, Top
+@@ -123,12 +143,13 @@
+ @end example
+ @c !END SYNOPSIS
+-@menu
+-* Option Summary::           Option summary
+-@end menu
++@c 以下のメニューはない方がよいので、コメントにしておく。
++@c @menu
++@c * Option Summary::           Option summary
++@c @end menu
+ @node Option Summary, Return Value, Invoking Which, Top
+-@chapter Option Summary
++@chapter オプション一覧
+ @cindex オプション、コマンドライン
+ @cindex コマンドライン・オプション
+ @cindex コマンドラインオプション一覧
+@@ -214,7 +235,7 @@
+ @c !END OPTIONS
+ @node Return Value, Example, Option Summary, Top
+-@chapter Return Value
++@chapter 返り値
+ @cindex @command{which} の返り値
+ @c !BEGIN RETURNVALUE
+@@ -223,7 +244,7 @@
+ @file{programname} が指定されなかった場合には、-1 を返す。
+ @node Example, Bugs, Return Value, Top
+-@chapter Example
++@chapter 用例
+ @cindex 用例
+ @cindex エイリアスの使用
+@@ -272,7 +293,7 @@
+ @c !END EXAMPLE
+ @node Bugs, See Also, Example, Top
+-@chapter Bugs
++@chapter バグ
+ @cindex 既知のバグ
+ @c !BEGIN BUGS
+@@ -288,7 +309,7 @@
+ 片方のパスにシンボリックリンクが含まれている場合は、別のディレクトリと見なすことになる。
+ @node See Also, Index, Bugs, Top
+-@chapter See Also
++@chapter 関連項目
+ @c !BEGIN SEEALSO
+ @c !END SEEALSO
+@@ -296,7 +317,7 @@
+ @node Index, , See Also, Top
+ @comment node-name,    next,  previous,       up
+-@unnumbered Index
++@unnumbered 索引
+ @printindex cp
diff --git a/info/GNU_which/po4a/which.pot b/info/GNU_which/po4a/which.pot
new file mode 100644 (file)
index 0000000..11c0ad7
--- /dev/null
@@ -0,0 +1,580 @@
+# SOME DESCRIPTIVE TITLE
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2023-01-21 10:25+0900\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: settitle
+#: which.texi:4
+#, no-wrap
+msgid "@command{which}: show full path of commands"
+msgstr ""
+
+#. type: include
+#: which.texi:5
+#, no-wrap
+msgid "version.texi"
+msgstr ""
+
+#. type: dircategory
+#: which.texi:6
+#, no-wrap
+msgid "System administration"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:9
+msgid "Which: (which)"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:9
+msgid "Show full path of commands."
+msgstr ""
+
+#. type: format
+#: which.texi:20
+#, no-wrap
+msgid ""
+"This file documents `which' version 2.x@.\n"
+"\n"
+msgstr ""
+
+#. type: format
+#: which.texi:23
+#, no-wrap
+msgid ""
+"Copyright @copyright{} 2000 - 2015, by\n"
+"\n"
+msgstr ""
+
+#. type: format
+#: which.texi:27
+#, no-wrap
+msgid ""
+"Carlo Wood, Run on IRC <carlo@@alinoe.com>\n"
+"RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt\n"
+"Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61\n"
+"\n"
+msgstr ""
+
+#. type: format
+#: which.texi:31
+#, no-wrap
+msgid ""
+"Permission is granted to make and distribute verbatim copies of\n"
+"this manual provided the copyright notice and this permission notice\n"
+"are preserved on all copies.\n"
+msgstr ""
+
+#. type: title
+#: which.texi:51
+#, no-wrap
+msgid "Which"
+msgstr ""
+
+#. type: subtitle
+#: which.texi:52
+#, no-wrap
+msgid "Show the full path of commands"
+msgstr ""
+
+#. type: subtitle
+#: which.texi:54
+#, no-wrap
+msgid "Edition @value{EDITION}, for Which Version @value{VERSION}"
+msgstr ""
+
+#. type: subtitle
+#: which.texi:55
+#, no-wrap
+msgid "@value{UPDATED}"
+msgstr ""
+
+#. type: author
+#: which.texi:57
+#, no-wrap
+msgid "Carlo Wood <@email{carlo@@gnu.org}>"
+msgstr ""
+
+#. type: titlepage
+#: which.texi:62
+msgid "Copyright @copyright{} 2000 - 2015, by"
+msgstr ""
+
+#. type: titlepage
+#: which.texi:66
+msgid ""
+"Carlo Wood, Run on IRC <carlo@@alinoe.com> RSA-1024 0x624ACAD5 1997-01-26 "
+"Sign & Encrypt Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF "
+"61"
+msgstr ""
+
+#. type: node
+#: which.texi:70 which.texi:95 which.texi:108 which.texi:126 which.texi:208 which.texi:217 which.texi:261 which.texi:273 which.texi:280
+#, no-wrap
+msgid "Top"
+msgstr ""
+
+#. type: node
+#: which.texi:70 which.texi:93 which.texi:95 which.texi:108
+#, no-wrap
+msgid "Which Program"
+msgstr ""
+
+#. type: node
+#: which.texi:70
+#, no-wrap
+msgid "(dir)"
+msgstr ""
+
+#. type: top
+#: which.texi:71
+#, no-wrap
+msgid "@command{which}: Show the full path of commands"
+msgstr ""
+
+#. type: ifinfo
+#: which.texi:79
+msgid "The @command{which} program shows the full path of (shell) commands."
+msgstr ""
+
+#. type: ifinfo
+#: which.texi:82
+msgid ""
+"This file documents @command{which} version @value{VERSION}, updated "
+"@value{UPDATED}."
+msgstr ""
+
+#. type: chapter
+#: which.texi:93 which.texi:96
+#, no-wrap
+msgid "The @command{which} Program"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:95 which.texi:108 which.texi:126
+#, no-wrap
+msgid "Invoking Which"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "How to invoke @command{which}"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:108 which.texi:124 which.texi:126 which.texi:127 which.texi:208
+#, no-wrap
+msgid "Option Summary"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "Overview of commandline options"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:126 which.texi:208 which.texi:209 which.texi:217
+#, no-wrap
+msgid "Return Value"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "The return value of @command{which}"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:208 which.texi:217 which.texi:218 which.texi:261
+#, no-wrap
+msgid "Example"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "Examples of invokation"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:217 which.texi:261 which.texi:262 which.texi:273
+#, no-wrap
+msgid "Bugs"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "Known bugs"
+msgstr ""
+
+#. type: node
+#: which.texi:93 which.texi:261 which.texi:273 which.texi:274 which.texi:280
+#, no-wrap
+msgid "See Also"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:93
+msgid "Related UNIX commands"
+msgstr ""
+
+#. type: unnumbered
+#: which.texi:93 which.texi:273 which.texi:280 which.texi:282
+#, no-wrap
+msgid "Index"
+msgstr ""
+
+#. type: cindex
+#: which.texi:97
+#, no-wrap
+msgid "Description of @command{which}"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:107
+msgid ""
+"@command{Which} takes one or more arguments. For each of its arguments it "
+"prints to stdout the full path of the executables that would have been "
+"executed when this argument had been entered at the shell prompt. It does "
+"this by searching for an executable or script in the directories listed in "
+"the environment variable @env{PATH} using the same algorithm as "
+"@command{bash(1)}."
+msgstr ""
+
+#. type: cindex
+#: which.texi:109 which.texi:110
+#, no-wrap
+msgid "Invoking @command{which}"
+msgstr ""
+
+#. type: cindex
+#: which.texi:111
+#, no-wrap
+msgid "Synopsis"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:115
+msgid "The synopsis to invoke @command{which} is"
+msgstr ""
+
+#. type: example
+#: which.texi:119
+#, no-wrap
+msgid "which [options] [--] programname [...]\n"
+msgstr ""
+
+#. type: menuentry
+#: which.texi:124
+msgid "Option summary"
+msgstr ""
+
+#. type: cindex
+#: which.texi:128
+#, no-wrap
+msgid "Options, command line"
+msgstr ""
+
+#. type: cindex
+#: which.texi:129
+#, no-wrap
+msgid "Command line Options"
+msgstr ""
+
+#. type: cindex
+#: which.texi:130
+#, no-wrap
+msgid "Overview of command line options"
+msgstr ""
+
+#. type: item
+#: which.texi:134 which.texi:136
+#, no-wrap
+msgid "--all"
+msgstr ""
+
+#. type: itemx
+#: which.texi:135 which.texi:137
+#, no-wrap
+msgid "-a"
+msgstr ""
+
+#. type: table
+#: which.texi:139
+msgid "Print all matching executables in @env{PATH}, not just the first."
+msgstr ""
+
+#. type: item
+#: which.texi:140 which.texi:142
+#, no-wrap
+msgid "--read-alias"
+msgstr ""
+
+#. type: itemx
+#: which.texi:141 which.texi:143
+#, no-wrap
+msgid "-i"
+msgstr ""
+
+#. type: table
+#: which.texi:148
+msgid ""
+"Read aliases from stdin, reporting matching ones on stdout. This is useful "
+"in combination with using an alias for which itself. For example@* "
+"@code{alias which='alias | which -i'}."
+msgstr ""
+
+#. type: item
+#: which.texi:149 which.texi:150
+#, no-wrap
+msgid "--skip-alias"
+msgstr ""
+
+#. type: table
+#: which.texi:154
+msgid ""
+"Ignore option @option{--read-alias}, if any. This is useful to explicity "
+"search for normal binaries, while using the @option{--read-alias} option in "
+"an alias or function for which."
+msgstr ""
+
+#. type: item
+#: which.texi:155 which.texi:156
+#, no-wrap
+msgid "--read-functions"
+msgstr ""
+
+#. type: table
+#: which.texi:161
+msgid ""
+"Read shell function definitions from stdin, reporting matching ones on "
+"stdout. This is useful in combination with using a shell function for which "
+"itself.  For example:@* @code{which() @{ declare -f | which --read-functions "
+"$@@ @}@*export -f which}"
+msgstr ""
+
+#. type: item
+#: which.texi:162 which.texi:163
+#, no-wrap
+msgid "--skip-functions"
+msgstr ""
+
+#. type: table
+#: which.texi:167
+msgid ""
+"Ignore option @option{--read-functions}, if any. This is useful to explicity "
+"search for normal binaries, while using the @option{--read-functions} option "
+"in an alias or function for which."
+msgstr ""
+
+#. type: item
+#: which.texi:168 which.texi:169
+#, no-wrap
+msgid "--skip-dot"
+msgstr ""
+
+#. type: table
+#: which.texi:171
+msgid "Skip directories in @env{PATH} that start with a dot."
+msgstr ""
+
+#. type: item
+#: which.texi:172 which.texi:173
+#, no-wrap
+msgid "--skip-tilde"
+msgstr ""
+
+#. type: table
+#: which.texi:176
+msgid ""
+"Skip directories in @env{PATH} that start with a tilde and executables which "
+"reside in the @env{HOME} directory."
+msgstr ""
+
+#. type: item
+#: which.texi:177 which.texi:178
+#, no-wrap
+msgid "--show-dot"
+msgstr ""
+
+#. type: table
+#: which.texi:182
+msgid ""
+"If a directory in @env{PATH} starts with a dot and a matching executable was "
+"found for that path, then print \"./programname\" rather than the full path."
+msgstr ""
+
+#. type: item
+#: which.texi:183 which.texi:184
+#, no-wrap
+msgid "--show-tilde"
+msgstr ""
+
+#. type: table
+#: which.texi:188
+msgid ""
+"Output a tilde when a directory matches the @env{HOME} directory. This "
+"option is ignored when which is invoked as root."
+msgstr ""
+
+#. type: item
+#: which.texi:189 which.texi:190
+#, no-wrap
+msgid "--tty-only"
+msgstr ""
+
+#. type: table
+#: which.texi:192
+msgid "Stop processing options on the right if not on tty."
+msgstr ""
+
+#. type: option{#1}
+#: which.texi:193
+#, no-wrap
+msgid "--version"
+msgstr ""
+
+#. type: option{#1}
+#: which.texi:194
+#, no-wrap
+msgid "-v"
+msgstr ""
+
+#. type: option{#1}
+#: which.texi:195
+#, no-wrap
+msgid "-V"
+msgstr ""
+
+#. type: item
+#: which.texi:196
+#, no-wrap
+msgid "--version, -v, -V"
+msgstr ""
+
+#. type: table
+#: which.texi:199
+msgid "Print version information on standard output then exit successfully."
+msgstr ""
+
+#. type: item
+#: which.texi:200 which.texi:201
+#, no-wrap
+msgid "--help"
+msgstr ""
+
+#. type: table
+#: which.texi:204
+msgid "Print usage information on standard output then exit successfully."
+msgstr ""
+
+#. type: cindex
+#: which.texi:210
+#, no-wrap
+msgid "Return value of @command{which}"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:216
+msgid ""
+"@command{Which} returns the number of failed arguments, or -1 when no "
+"@file{programname} was given."
+msgstr ""
+
+#. type: cindex
+#: which.texi:219
+#, no-wrap
+msgid "Examples"
+msgstr ""
+
+#. type: cindex
+#: which.texi:220
+#, no-wrap
+msgid "aliases, handling of"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:225
+msgid ""
+"The recommended way to use this utility is by adding an alias (C shell)  or "
+"shell function (Bourne shell) for @command{which} like the following:"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:227
+msgid "[ba]sh:"
+msgstr ""
+
+#. type: group
+#: which.texi:235
+#, no-wrap
+msgid ""
+"which ()\n"
+"@{\n"
+"  (alias; declare -f) | /usr/bin/which --tty-only --read-alias "
+"--read-functions --show-tilde --show-dot $@@\n"
+"@}\n"
+"export -f which\n"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:239
+msgid "[t]csh:"
+msgstr ""
+
+#. type: group
+#: which.texi:243
+#, no-wrap
+msgid ""
+"alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot "
+"--show-tilde'\n"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:250
+msgid ""
+"This will print the readable ~/ and ./ when starting which from your prompt, "
+"while still printing the full path when used from a script:"
+msgstr ""
+
+#. type: group
+#: which.texi:257
+#, no-wrap
+msgid ""
+"> which q2\n"
+"~/bin/q2\n"
+"> echo `which q2`\n"
+"/home/carlo/bin/q2\n"
+msgstr ""
+
+#. type: cindex
+#: which.texi:263
+#, no-wrap
+msgid "Bugs, known"
+msgstr ""
+
+#. type: Plain text
+#: which.texi:272
+msgid ""
+"The @env{HOME} directory is determined by looking for the @env{HOME} "
+"environment variable, which aborts when this variable doesn't exist.  "
+"@command{Which} will consider two equivalent directories to be different "
+"when one of them contains a path with a symbolic link."
+msgstr ""
+
+#. type: command{#1}
+#: which.texi:279
+msgid "bash(1)"
+msgstr ""