Added an FHS compliance note regarding the linking of [ with test.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@565 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Simon Perreault 2001-05-03 23:44:00 +00:00
parent 5aa8b719e6
commit 4294b908cd

View File

@ -16,3 +16,21 @@ Install Shellutils by running the following commands:
</sect2> </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 if more often encountered
under the form <command>[ condition ]</command>. These brackets are built into
the bash interpreter, but the FHS dictates that there should exist a
<filename>[</filename> binary. We create that in this way, while still in the
<filename>/usr/bin</filename> directory:
</para>
<blockquote><literallayout>
<userinput>ln -s test [</userinput>
</literallayout></blockquote>
</sect2>