2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
|
2002-05-26 22:25:09 +01:00
|
|
|
<para>Install Sh-utils by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-10-27 23:21:44 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr &&
|
|
|
|
make &&
|
|
|
|
make install &&
|
2002-05-02 21:15:02 +01:00
|
|
|
mv /usr/bin/{basename,date,echo,false,hostname} /bin &&
|
|
|
|
mv /usr/bin/{pwd,sleep,stty,su,test,true,uname} /bin &&
|
|
|
|
mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-05-04 00:44:00 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<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
|
2002-05-21 17:50:46 +01:00
|
|
|
<filename>[</filename> binary. Create it by running:</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-08-18 18:26:58 +01:00
|
|
|
<para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
2001-05-04 00:44:00 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|