OSDN Git Service

8c9031943ffea6f94bdb427ca354fc09848e4942
[clfsja/cross-lfs-ja.git] / src / system-config / common / profile.ch
1 %
2 % This is part of CLFSja package.
3 %
4 % This is a CTIE change file for the original XML source of the CLFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13   <title>The Bash Shell Startup Files</title>
14 @y
15   <title>Bash シェルの初期起動ファイル</title>
16 @z
17
18 @x
19   <para>The shell program <command>/bin/bash</command> (hereafter
20   referred to as <quote>the shell</quote>) uses a collection of startup
21   files to help create an environment to run in. Each file has a
22   specific use and may affect login and interactive environments
23   differently. The files in the <filename class="directory">/etc</filename>
24   directory provide global settings. If an equivalent file exists in the
25   home directory, it may override the global settings.</para>
26 @y
27   <para>
28   シェルプログラムである <filename>/bin/bash</filename> (これ以降は単に<quote>シェル</quote>と表現します) は、初期起動ファイルをいくつも利用して環境設定を行います。
29   個々のファイルにはそれぞれに目的があり、ログインや対話環境をさまざまに制御します。
30   <filename class="directory">/etc</filename> ディレクトリにあるファイルは一般にグローバルな設定を行います。
31   これに対応づいたファイルがユーザーのホームディレクトリにある場合は、グローバルな設定を上書きします。
32   </para>
33 @z
34
35 @x
36   <para>An interactive login shell is started after a successful login,
37   using <command>/bin/login</command>, by reading the
38   <filename>/etc/passwd</filename> file. An interactive non-login shell
39   is started at the command-line (e.g.,
40   <prompt>[prompt]$</prompt><command>/bin/bash</command>). A
41   non-interactive shell is usually present when a shell script is
42   running. It is non-interactive because it is processing a script and
43   not waiting for user input between commands.</para>
44 @y
45   <para>
46   対話型ログインシェルは <command>/bin/login</command> プログラムを利用して <filename>/etc/passwd</filename> ファイルを読み込み、ログインが成功することで起動します。
47   同じ対話型でも非ログインシェルの場合は <prompt>[prompt]$</prompt><command>/bin/bash</command> のようなコマンドラインからの入力を経て起動します。
48   非対話型のシェルはシェルスクリプト動作中に実行されます。
49   非対話型であるのは、スクリプトの実行の最中にユーザーからの入力を待つことがないためです。
50   </para>
51 @z
52
53 @x
54   <para>For more information, see <command>info bash</command> under the
55   <emphasis>Bash Startup Files and Interactive Shells</emphasis> section,
56   and <ulink url="&cblfs-root;index.php/Bash_Startup_Files">Bash Startup
57   Files</ulink> in CBLFS.</para>
58 @y
59   <para>
60   より詳しい情報は <command>info bash</command> の <emphasis>Bash Startup Files and Interactive Shells</emphasis> や CBLFS の <ulink
61   url="&cblfs-root;index.php/Bash_Startup_Files">Bash Startup Files</ulink> の節を参照してください。
62   </para>
63 @z
64
65 @x
66   <para>The files <filename>/etc/profile</filename> and
67   <filename>~/.bash_profile</filename> are read when the shell is
68   invoked as an interactive login shell. Create a base
69   <filename>/etc/profile</filename> that will read locale information from
70   <filename>/etc/locale.conf</filename> and load
71   any Bash auto completion files that may be on the system. This script also
72   sets the <envar>INPUTRC</envar> environment variable that makes Bash and
73   Readline use <filename>/etc/inputrc</filename>:</para>
74 @y
75   <para>
76   <filename>/etc/profile</filename> ファイルと <filename>~/.bash_profile</filename> ファイルは、対話型のログインシェルとして起動した時に読み込まれます。
77   そこで <filename>/etc/profile</filename> を生成します。
78   これは <filename>/etc/locale.conf</filename> からロケール情報を読み込みます。
79   また Bash の自動補完 (auto completion) ファイルがあればこれも読み込みます。
80   そして環境変数 <envar>INPUTRC</envar> を <filename>/etc/inputrc</filename> に設定して Bash と Readline がこれを利用するようにします。
81   </para>
82 @z