|
@@ -17,7 +17,7 @@
|
|
<para>为了配置一个好的工作环境,我们为 <command>bash</command>
|
|
<para>为了配置一个好的工作环境,我们为 <command>bash</command>
|
|
创建两个新的启动脚本。以
|
|
创建两个新的启动脚本。以
|
|
<systemitem class="username">lfs</systemitem> 的身份,执行下列命令,
|
|
<systemitem class="username">lfs</systemitem> 的身份,执行下列命令,
|
|
- 以创建一个新的 <filename>.bash_profile</filename>:</para>
|
|
|
|
|
|
+ 创建一个新的 <filename>.bash_profile</filename>:</para>
|
|
|
|
|
|
<screen><userinput>cat > ~/.bash_profile << "EOF"
|
|
<screen><userinput>cat > ~/.bash_profile << "EOF"
|
|
<literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
|
|
<literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
|
|
@@ -35,7 +35,7 @@ EOF</userinput></screen>
|
|
leak into the build environment. The technique used here achieves the goal of
|
|
leak into the build environment. The technique used here achieves the goal of
|
|
ensuring a clean environment.</para-->
|
|
ensuring a clean environment.</para-->
|
|
|
|
|
|
- <para>在以 <systemitem class="username">lfs</systemitem> 身份登录时,
|
|
|
|
|
|
+ <para>在以 <systemitem class="username">lfs</systemitem> 用户登录时,
|
|
初始的 shell 一般是一个 <emphasis>登录</emphasis> shell。它读取宿主系统的
|
|
初始的 shell 一般是一个 <emphasis>登录</emphasis> shell。它读取宿主系统的
|
|
<filename>/etc/profile</filename> 文件 (可能包含一些设置和环境变量),
|
|
<filename>/etc/profile</filename> 文件 (可能包含一些设置和环境变量),
|
|
然后读取 <filename>.bash_profile</filename> 。
|
|
然后读取 <filename>.bash_profile</filename> 。
|