mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
b06ac510ac
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2100 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<sect2>
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
<para>This package requires its hostname-patch to be applied before you
|
|
can install it. Make sure it's unpacked before running the installation
|
|
commands.</para>
|
|
|
|
<para>Install Sh-utils by running the following commands:</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch &&
|
|
./configure --prefix=/usr &&
|
|
make &&
|
|
make install &&
|
|
mv /usr/bin/{basename,date,echo,false,pwd} /bin &&
|
|
mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &&
|
|
mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>FHS compliance notes</title>
|
|
|
|
<para>There is a command installed in this package which is named test. It is
|
|
often used in shell scripts to evaluate conditions, but is more often
|
|
encountered in the form of <command>[ condition ]</command>. These brackets
|
|
are built into the bash interpreter, but the FHS dictates that there should be a
|
|
<filename>[</filename> binary. Create it by running:</para>
|
|
|
|
<para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|