|
@@ -23,7 +23,7 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>The Bash package contains the Bourne-Again SHell.</para>
|
|
|
+ <para>Bash 软件包包含 Bourne-Again SHell。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -38,7 +38,7 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装Bash</title>
|
|
|
+ <title>安装 Bash</title>
|
|
|
<!--
|
|
|
<para>Incorporate some upstream fixes:</para>
|
|
|
|
|
@@ -52,15 +52,14 @@
|
|
|
--with-installed-readline</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the new configure option:</title>
|
|
|
+ <title>配置选项的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-installed-readline</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This option tells Bash to use the <filename
|
|
|
- class="libraryfile">readline</filename> library that is already
|
|
|
- installed on the system rather than using its own readline
|
|
|
- version.</para>
|
|
|
+ <para>该选项告诉 Bash 使用系统中已经安装的 <filename
|
|
|
+ class="libraryfile">readline</filename> 库,
|
|
|
+ 而不是它自己的 readline 版本。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
@@ -70,33 +69,34 @@
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
- <para>Skip down to <quote>Install the
|
|
|
- package</quote> if not running the test suite.</para>
|
|
|
+ <para>如果不运行测试套件,跳到 <quote>安装该软件包</quote>。</para>
|
|
|
|
|
|
- <para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para>
|
|
|
+ <para>为了准备进行测试,确保
|
|
|
+ <systemitem class="username">nobody</systemitem>
|
|
|
+ 用户可以写入源代码目录:</para>
|
|
|
|
|
|
<screen><userinput remap="test">chown -Rv nobody .</userinput></screen>
|
|
|
|
|
|
- <para>Now, run the tests as the <systemitem
|
|
|
- class="username">nobody</systemitem> user:</para>
|
|
|
+ <para>现在以 <systemitem class="username">nobody</systemitem>
|
|
|
+ 用户的身份运行测试:</para>
|
|
|
|
|
|
<screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH make tests"</userinput></screen>
|
|
|
|
|
|
- <para>Install the package and move the main executable to
|
|
|
- <filename class='directory'>/bin</filename>:</para>
|
|
|
+ <para>安装该软件包,并把主要的可执行文件移动到
|
|
|
+ <filename class='directory'>/bin</filename>:</para>
|
|
|
|
|
|
<screen><userinput remap="install">make install
|
|
|
mv -vf /usr/bin/bash /bin</userinput></screen>
|
|
|
|
|
|
- <para>Run the newly compiled <command>bash</command> program (replacing the one that is
|
|
|
- currently being executed):</para>
|
|
|
+ <para>执行新编译的 <command>bash</command> 程序
|
|
|
+ (替换当前正在执行的版本):</para>
|
|
|
|
|
|
<screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
|
|
|
|
|
|
<note>
|
|
|
- <para>The parameters used make the <command>bash</command>
|
|
|
- process an interactive login shell and continue to disable hashing so
|
|
|
- that new programs are found as they become available.</para>
|
|
|
+ <para>上面使用的参数使得 <command>bash</command>
|
|
|
+ 进程是一个可交互的登录 shell ,并且仍然禁用散列功能,
|
|
|
+ 这样新程序一旦可用就会被找到。</para>
|
|
|
</note>
|
|
|
|
|
|
</sect2>
|
|
@@ -109,7 +109,7 @@ mv -vf /usr/bin/bash /bin</userinput></screen>
|
|
|
<segtitle>安装的目录</segtitle>
|
|
|
|
|
|
<seglistitem>
|
|
|
- <seg>bash, bashbug, and sh (link to bash)</seg>
|
|
|
+ <seg>bash, bashbug, 以及 sh (到 bash 的链接)</seg>
|
|
|
<seg>/usr/share/doc/bash-&bash-version;</seg>
|
|
|
</seglistitem>
|
|
|
</segmentedlist>
|
|
@@ -122,9 +122,12 @@ mv -vf /usr/bin/bash /bin</userinput></screen>
|
|
|
<varlistentry id="bash">
|
|
|
<term><command>bash</command></term>
|
|
|
<listitem>
|
|
|
- <para>A widely-used command interpreter; it performs many types of
|
|
|
+ <!--para>A widely-used command interpreter; it performs many types of
|
|
|
expansions and substitutions on a given command line before executing
|
|
|
- it, thus making this interpreter a powerful tool</para>
|
|
|
+ it, thus making this interpreter a powerful tool</para-->
|
|
|
+ <para>一个广泛使用的命令解释器;
|
|
|
+ 它在执行命令前对命令行进行多种展开和替换操作,
|
|
|
+ 这些操作使得它成为强大的工具。</para>
|
|
|
<indexterm zone="ch-system-bash bash">
|
|
|
<primary sortas="b-bash">bash</primary>
|
|
|
</indexterm>
|
|
@@ -134,8 +137,8 @@ mv -vf /usr/bin/bash /bin</userinput></screen>
|
|
|
<varlistentry id="bashbug">
|
|
|
<term><command>bashbug</command></term>
|
|
|
<listitem>
|
|
|
- <para>A shell script to help the user compose and mail standard
|
|
|
- formatted bug reports concerning <command>bash</command></para>
|
|
|
+ <para>一个 shell 脚步,用于帮助用户按照电子邮件标准格式编写关于
|
|
|
+ <command>bash</command> 的 bug 报告</para>
|
|
|
<indexterm zone="ch-system-bash bashbug">
|
|
|
<primary sortas="b-bashbug">bashbug</primary>
|
|
|
</indexterm>
|
|
@@ -145,11 +148,15 @@ mv -vf /usr/bin/bash /bin</userinput></screen>
|
|
|
<varlistentry id="sh">
|
|
|
<term><command>sh</command></term>
|
|
|
<listitem>
|
|
|
- <para>A symlink to the <command>bash</command> program; when invoked
|
|
|
+ <!--para>A symlink to the <command>bash</command> program; when invoked
|
|
|
as <command>sh</command>, <command>bash</command> tries to mimic the
|
|
|
startup behavior of historical versions of <command>sh</command> as
|
|
|
closely as possible, while conforming to the POSIX standard as
|
|
|
- well</para>
|
|
|
+ well</para-->
|
|
|
+ <para>一个指向 <command>bash</command> 程序的符号链接;
|
|
|
+ 当以 <command>sh</command> 命令运行时,
|
|
|
+ <command>bash</command> 试图尽可能地模仿
|
|
|
+ <command>sh</command> 的历史版本,以符合 POSIX 标准</para>
|
|
|
<indexterm zone="ch-system-bash sh">
|
|
|
<primary sortas="b-sh">sh</primary>
|
|
|
</indexterm>
|